Ejemplo n.º 1
0
 def test_write(self):
     stream = StringIO()
     self.section.write(stream)
     result = stream.getvalue()
     stream.close()
     t1 = sorted(normlines(TESTBLOCKS))
     t2 = sorted(normlines(result))
     self.assertEqual(t1, t2)
Ejemplo n.º 2
0
 def test_write(self):
     stream = StringIO()
     self.section.write(stream)
     result = stream.getvalue()
     stream.close()
     t1 = sorted(normlines(TESTBLOCKS))
     t2 = sorted(normlines(result))
     self.assertEqual(t1, t2)
Ejemplo n.º 3
0
 def test_write(self):
     stream = StringIO()
     self.table.write(stream)
     result = stream.getvalue()
     stream.close()
     self.assertEqual(normlines(AC1024TABLE), normlines(result))
Ejemplo n.º 4
0
 def test_write(self):
     stream = StringIO()
     self.section.write(stream)
     result = stream.getvalue()
     stream.close()
     self.assertEqual(normlines(TESTCLASSES), normlines(result))