def test_empty_section(self): section = ClassesSection(Tags.from_text(EMPTYSEC), self.dwg) stream = StringIO() section.write(stream) result = stream.getvalue() stream.close() self.assertEqual(EMPTYSEC, result)
def setUp(self): self.dwg = DrawingProxy('AC1024') self.table = Table(Tags.from_text(AC1024TABLE), self.dwg)
def setUp(self): self.dwg = DrawingProxy('AC1009') self.tables = TablesSection(Tags.from_text(TEST_TABLES), self.dwg)
def setUp(self): self.dwg = DrawingProxy('AC1018') self.section = EntitySection(Tags.from_text(NEW_STYLE_POLYFACE), self.dwg)
def setUp(self): self.dwg = DrawingProxy('AC1009') self.section = ClassesSection(Tags.from_text(TESTCLASSES), self.dwg)
def setUp(self): self.dwg = DrawingProxy('AC1009') self.section = ObjectsSection(Tags.from_text(TESTOBJECTS), self.dwg)
def setUp(self): self.dwg = DrawingProxy('AC1009') self.section = BlocksSection(Tags.from_text(TESTBLOCKS), self.dwg)
def setUp(self): self.dwg = DrawingProxy("AC1009") self.section = BlocksSection(Tags.from_text(TESTBLOCKS), self.dwg)
def setUp(self): tags = Tags.from_text(TESTCUSTOMPROPERTIES) dwg = DrawingProxy('AC1009') self.header = HeaderSection(tags) self.header.set_headervar_factory(dwg.dxffactory.headervar_factory)
def setUp(self): self.dwg = DrawingProxy('AC1009') self.section = EntitySection(Tags.from_text(TESTENTITIES), self.dwg)
def setUp(self): tags = Tags.from_text(TESTCUSTOMPROPERTIES) dwg = DrawingProxy("AC1009") self.header = HeaderSection(tags) self.header.set_headervar_factory(dwg.dxffactory.headervar_factory)
def setUp(self): self.dwg = DrawingProxy("AC1009") self.section = ObjectsSection(Tags.from_text(TESTOBJECTS), self.dwg)