Ejemplo n.º 1
0
 def test_prototype_xml_540degree_roundtrip(self):
     test_file = os.path.join(examples_dir, 'HodgkinHuxleyModified.xml')
     context1 = read(test_file)
     xml = context1.to_xml()
     context2 = load(xml, read_from=test_file)
     self.assertEquals(context1, context2)
Ejemplo n.º 2
0
 def test_xml_540degree_roundtrip(self):
     document1 = read(self.test_file)
     xml = document1.to_xml()
     document2 = load(xml, read_from=self.test_file)
     self.assertEquals(document1, document2)
Ejemplo n.º 3
0
 def test_xml_540degree_roundtrip(self):
     context1 = read(self.test_file)
     xml = context1.to_xml()
     context2 = load(xml, read_from=self.test_file)
     self.assertEquals(context1, context2)
Ejemplo n.º 4
0
 def test_prototype_xml_540degree_roundtrip(self):
     test_file = os.path.join(examples_dir, 'HodgkinHuxleyModified.xml')
     document1 = read(test_file)
     xml = document1.to_xml()
     document2 = load(xml, read_from=test_file)
     self.assertEquals(document1, document2)
Ejemplo n.º 5
0
 def test_component_xml_540degree_roundtrip(self):
     test_file = os.path.join(examples_dir, 'HodgkinHuxley.xml')
     document1 = read(test_file)
     xml = document1.to_xml()
     document2 = load(xml, read_from=test_file)
     self.assertEquals(document1, document2)
Ejemplo n.º 6
0
 def test_xml_540degree_roundtrip(self):
     document1 = read(self.test_file)
     xml = document1.to_xml()
     document2 = load(xml, read_from=self.test_file)
     self.assertEquals(document1.items(), document2.items())