def test_render_muliple_fields(self): sd = SegmentDefinition(fields=(SegmentField(name='a'), SegmentField(name='b'))) self.assertEqual('138', sd.render((13, 8)))
def test_render(self): sd = SegmentDefinition() self.assertEqual('5', sd.render(5))