Example #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))
Example #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))
Example #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))
Example #4
0
 def test_none_equals(self):
     self.assertTrue(failure._are_equal_exc_info_tuples(None, None))
Example #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))
Example #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))
Example #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))
Example #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))
Example #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))
Example #10
0
 def test_none_equals(self):
     self.assertTrue(failure._are_equal_exc_info_tuples(None, None))