Ejemplo n.º 1
0
 def test_empty_section(self):
     section = ObjectsSection(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 test_empty_section(self):
     section = ObjectsSection(Tags.from_text(EMPTYSEC), self.dwg)
     stream = StringIO()
     section.write(stream)
     result = stream.getvalue()
     stream.close()
     self.assertEqual(EMPTYSEC, result)
Ejemplo n.º 3
0
class TestObjectsSection(unittest.TestCase):
    def setUp(self):
        self.dwg = DrawingProxy('AC1009')
        self.section = ObjectsSection(Tags.from_text(TESTOBJECTS), self.dwg)

    def test_write(self):
        stream = StringIO()
        self.section.write(stream)
        result = stream.getvalue()
        stream.close()
        self.assertEqual(normlines(TESTOBJECTS), normlines(result))

    def test_empty_section(self):
        section = ObjectsSection(Tags.from_text(EMPTYSEC), self.dwg)
        stream = StringIO()
        section.write(stream)
        result = stream.getvalue()
        stream.close()
        self.assertEqual(EMPTYSEC, result)
Ejemplo n.º 4
0
class TestObjectsSection(unittest.TestCase):
    def setUp(self):
        self.dwg = DrawingProxy("AC1009")
        self.section = ObjectsSection(Tags.from_text(TESTOBJECTS), self.dwg)

    def test_write(self):
        stream = StringIO()
        self.section.write(stream)
        result = stream.getvalue()
        stream.close()
        self.assertEqual(normlines(TESTOBJECTS), normlines(result))

    def test_empty_section(self):
        section = ObjectsSection(Tags.from_text(EMPTYSEC), self.dwg)
        stream = StringIO()
        section.write(stream)
        result = stream.getvalue()
        stream.close()
        self.assertEqual(EMPTYSEC, result)
Ejemplo n.º 5
0
 def setUp(self):
     self.dwg = DrawingProxy('AC1009')
     self.section = ObjectsSection(Tags.from_text(TESTOBJECTS), self.dwg)
Ejemplo n.º 6
0
 def setUp(self):
     self.dwg = DrawingProxy("AC1009")
     self.section = ObjectsSection(Tags.from_text(TESTOBJECTS), self.dwg)