예제 #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)
예제 #2
0
 def setUp(self):
     self.dwg = DrawingProxy('AC1024')
     self.table = Table(Tags.from_text(AC1024TABLE), self.dwg)
예제 #3
0
 def setUp(self):
     self.dwg = DrawingProxy('AC1009')
     self.tables = TablesSection(Tags.from_text(TEST_TABLES), self.dwg)
예제 #4
0
 def setUp(self):
     self.dwg = DrawingProxy('AC1018')
     self.section = EntitySection(Tags.from_text(NEW_STYLE_POLYFACE), self.dwg)
예제 #5
0
 def setUp(self):
     self.dwg = DrawingProxy('AC1009')
     self.section = ClassesSection(Tags.from_text(TESTCLASSES), self.dwg)
예제 #6
0
 def setUp(self):
     self.dwg = DrawingProxy('AC1009')
     self.section = ObjectsSection(Tags.from_text(TESTOBJECTS), self.dwg)
예제 #7
0
 def setUp(self):
     self.dwg = DrawingProxy('AC1009')
     self.section = BlocksSection(Tags.from_text(TESTBLOCKS), self.dwg)
예제 #8
0
 def setUp(self):
     self.dwg = DrawingProxy("AC1009")
     self.section = BlocksSection(Tags.from_text(TESTBLOCKS), self.dwg)
예제 #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)
예제 #10
0
 def setUp(self):
     self.dwg = DrawingProxy('AC1009')
     self.section = EntitySection(Tags.from_text(TESTENTITIES), self.dwg)
예제 #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)
예제 #12
0
 def setUp(self):
     self.dwg = DrawingProxy("AC1009")
     self.section = ObjectsSection(Tags.from_text(TESTOBJECTS), self.dwg)