Exemple #1
0
 def test_compare_slotted_diff(self):
     self.check_raises(
         Slotted(1, 2), Slotted(1, 3), "Slotted not as expected:\n"
         "\n"
         "attributes same:\n"
         "['x']\n"
         "\n"
         'attributes differ:\n'
         "'y': 2 != 3")
Exemple #2
0
 def test_compare_slotted_same(self):
     compare(Slotted(1, 2), Slotted(1, 2))