Ejemplo n.º 1
0
 def test_typle_equals_copy(self):
     exc_info = _make_exc_info("Woot!")
     copied = failure._copy_exc_info(exc_info)
     self.assertTrue(failure._are_equal_exc_info_tuples(exc_info, copied))
Ejemplo n.º 2
0
 def test_tuple_nen_none(self):
     exc_info = _make_exc_info("Woot!")
     self.assertFalse(failure._are_equal_exc_info_tuples(exc_info, None))
Ejemplo n.º 3
0
 def test_tuple_equals_itself(self):
     exc_info = _make_exc_info("Woot!")
     self.assertTrue(failure._are_equal_exc_info_tuples(exc_info, exc_info))
Ejemplo n.º 4
0
 def test_none_equals(self):
     self.assertTrue(failure._are_equal_exc_info_tuples(None, None))
Ejemplo n.º 5
0
 def test_none_ne_tuple(self):
     exc_info = _make_exc_info("Woot!")
     self.assertFalse(failure._are_equal_exc_info_tuples(None, exc_info))
Ejemplo n.º 6
0
 def test_typle_equals_copy(self):
     exc_info = _make_exc_info("Woot!")
     copied = failure._copy_exc_info(exc_info)
     self.assertTrue(failure._are_equal_exc_info_tuples(exc_info, copied))
Ejemplo n.º 7
0
 def test_tuple_equals_itself(self):
     exc_info = _make_exc_info("Woot!")
     self.assertTrue(failure._are_equal_exc_info_tuples(exc_info, exc_info))
Ejemplo n.º 8
0
 def test_tuple_nen_none(self):
     exc_info = _make_exc_info("Woot!")
     self.assertFalse(failure._are_equal_exc_info_tuples(exc_info, None))
Ejemplo n.º 9
0
 def test_none_ne_tuple(self):
     exc_info = _make_exc_info("Woot!")
     self.assertFalse(failure._are_equal_exc_info_tuples(None, exc_info))
Ejemplo n.º 10
0
 def test_none_equals(self):
     self.assertTrue(failure._are_equal_exc_info_tuples(None, None))