Ejemplo n.º 1
0
 def test_nested_xmls_not_equal(self):
     xml_set_child = XmlSet()
     xml_set_parent1 = XmlSet()
     xml_set_parent2 = XmlSet()
     xml_set_parent1.children.add(xml_set_child)
     xml_set_child.text = "Wrong"
     xml_set_parent2.children.add(xml_set_child)
     self.assertNotEquals(xml_set_parent2, xml_set_parent1)
Ejemplo n.º 2
0
 def test_basic_xmls_are_not_equal(self):
     xml_set1 = XmlSet()
     xml_set1.text = "Test"
     xml_set2 = XmlSet()
     xml_set2.text = "wrong"
     self.assertNotEquals(xml_set1, xml_set2)