def test_write(section): stream = StringIO() section.export_dxf(TagWriter(stream)) result = stream.getvalue() stream.close() t1 = list(internal_tag_compiler(TESTCLASSES)) t2 = list(internal_tag_compiler(result)) assert t1 == t2
def groups(): return list(group_tags(internal_tag_compiler(TESTTAGS)))
def test_add_to_entity_space(space): for group in group_tags(internal_tag_compiler(TESTENTITIES)): space.store_tags(group) assert 4 == len(space)
def test_add(self): for group in group_tags(internal_tag_compiler(TESTENTITIES)): self.space.store_tags(group) self.assertEqual(4, len(self.space))
def section(): entities = group_tags(internal_tag_compiler(ACDSSECTION)) return AcDsDataSection(None, entities)