| Conditions | 1 |
| Total Lines | 13 |
| Lines | 0 |
| Ratio | 0 % |
| 1 | from unittest import TestCase |
||
| 14 | def test_Pipeline(self): |
||
| 15 | from niprov.formatsimple import SimpleFormat |
||
| 16 | pipeline = Mock() |
||
| 17 | tree = {'raw.f':{'1a.f':{'2.f':{}},'1b.f':{}}} |
||
| 18 | exp = '' |
||
| 19 | exp += '+---raw.f\n' |
||
| 20 | exp += '| +---1a.f\n' |
||
| 21 | exp += '| | +---2.f\n' |
||
| 22 | exp += '| +---1b.f\n' |
||
| 23 | pipeline.asFilenameTree.return_value = tree |
||
| 24 | exporter = SimpleFormat() |
||
| 25 | out = exporter.serializePipeline(pipeline) |
||
| 26 | self.assertEqual(exp, out) |
||
| 27 | |||
| 39 |