Ejemplo n.º 1
0
 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)
Ejemplo n.º 2
0
 def setUp(self):
     self.dwg = DrawingProxy('AC1024')
     self.table = Table(Tags.from_text(AC1024TABLE), self.dwg)
Ejemplo n.º 3
0
 def setUp(self):
     self.dwg = DrawingProxy('AC1009')
     self.tables = TablesSection(Tags.from_text(TEST_TABLES), self.dwg)
Ejemplo n.º 4
0
 def setUp(self):
     self.dwg = DrawingProxy('AC1018')
     self.section = EntitySection(Tags.from_text(NEW_STYLE_POLYFACE), self.dwg)
Ejemplo n.º 5
0
 def setUp(self):
     self.dwg = DrawingProxy('AC1009')
     self.section = ClassesSection(Tags.from_text(TESTCLASSES), self.dwg)
Ejemplo n.º 6
0
 def setUp(self):
     self.dwg = DrawingProxy('AC1009')
     self.section = ObjectsSection(Tags.from_text(TESTOBJECTS), self.dwg)
Ejemplo n.º 7
0
 def setUp(self):
     self.dwg = DrawingProxy('AC1009')
     self.section = BlocksSection(Tags.from_text(TESTBLOCKS), self.dwg)
Ejemplo n.º 8
0
 def setUp(self):
     self.dwg = DrawingProxy("AC1009")
     self.section = BlocksSection(Tags.from_text(TESTBLOCKS), self.dwg)
Ejemplo n.º 9
0
 def setUp(self):
     tags = Tags.from_text(TESTCUSTOMPROPERTIES)
     dwg = DrawingProxy('AC1009')
     self.header = HeaderSection(tags)
     self.header.set_headervar_factory(dwg.dxffactory.headervar_factory)
Ejemplo n.º 10
0
 def setUp(self):
     self.dwg = DrawingProxy('AC1009')
     self.section = EntitySection(Tags.from_text(TESTENTITIES), self.dwg)
Ejemplo n.º 11
0
 def setUp(self):
     tags = Tags.from_text(TESTCUSTOMPROPERTIES)
     dwg = DrawingProxy("AC1009")
     self.header = HeaderSection(tags)
     self.header.set_headervar_factory(dwg.dxffactory.headervar_factory)
Ejemplo n.º 12
0
 def setUp(self):
     self.dwg = DrawingProxy("AC1009")
     self.section = ObjectsSection(Tags.from_text(TESTOBJECTS), self.dwg)