Пример #1
0
 def test_preserves_attributes(self):
     tag = GroupTag('employer',
                    'value1',
                    'value2',
                    'value3',
                    required=True,
                    hidden=True,
                    limit=5)
     tag2 = tag.tagslice(0, 1)
     assert tag2.required == tag.required
     assert tag2.hidden == tag.hidden
     assert tag2.limit == tag.limit
Пример #2
0
 def test_applies_slice_to_data(self):
     tag = GroupTag('employer', 'value1', 'value2', 'value3')
     tag2 = tag.tagslice(1, 2)
     assert tag2.data == {'value2': Tag('rank')}