Exemple #1
0
 def test_render_muliple_fields(self):
     sd = SegmentDefinition(fields=(SegmentField(name='a'),
                                    SegmentField(name='b')))
     self.assertEqual('138', sd.render((13, 8)))
Exemple #2
0
 def test_render_muliple_fields(self):
     sd = SegmentDefinition(fields=(SegmentField(name='a'),
                                    SegmentField(name='b')))
     self.assertEqual('138', sd.render((13, 8)))
Exemple #3
0
 def test_render(self):
     sd = SegmentDefinition()
     self.assertEqual('5', sd.render(5))
Exemple #4
0
 def test_render(self):
     sd = SegmentDefinition()
     self.assertEqual('5', sd.render(5))