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('AC1009') self.section = ClassesSection(Tags.from_text(TESTCLASSES), self.dwg)