Exemple #1
0
 def test_empty_section(self):
     section = BlocksSection(Tags.from_text(EMPTYSEC), self.dwg)
     stream = StringIO()
     section.write(stream)
     result = stream.getvalue()
     stream.close()
     self.assertEqual(EMPTYSEC, result)
Exemple #2
0
 def setUp(self):
     self.dwg = DrawingProxy('AC1009')
     self.section = BlocksSection(Tags.from_text(TESTBLOCKS), self.dwg)