Beispiel #1
0
 def test_typle_equals_copy(self):
     exc_info = self._make_ex_info()
     copied = misc.copy_exc_info(exc_info)
     self.assertTrue(misc.are_equal_exc_info_tuples(exc_info, copied))
Beispiel #2
0
 def test_tuple_nen_none(self):
     exc_info = self._make_ex_info()
     self.assertFalse(misc.are_equal_exc_info_tuples(exc_info, None))
Beispiel #3
0
 def test_tuple_equals_itself(self):
     exc_info = self._make_ex_info()
     self.assertTrue(misc.are_equal_exc_info_tuples(exc_info, exc_info))
Beispiel #4
0
 def test_none_equals(self):
     self.assertTrue(misc.are_equal_exc_info_tuples(None, None))
Beispiel #5
0
 def test_none_ne_tuple(self):
     exc_info = self._make_ex_info()
     self.assertFalse(misc.are_equal_exc_info_tuples(None, exc_info))
Beispiel #6
0
 def test_typle_equals_copy(self):
     exc_info = self._make_ex_info()
     copied = misc.copy_exc_info(exc_info)
     self.assertTrue(misc.are_equal_exc_info_tuples(exc_info, copied))
Beispiel #7
0
 def test_tuple_equals_itself(self):
     exc_info = self._make_ex_info()
     self.assertTrue(misc.are_equal_exc_info_tuples(exc_info, exc_info))
Beispiel #8
0
 def test_tuple_nen_none(self):
     exc_info = self._make_ex_info()
     self.assertFalse(misc.are_equal_exc_info_tuples(exc_info, None))
Beispiel #9
0
 def test_none_ne_tuple(self):
     exc_info = self._make_ex_info()
     self.assertFalse(misc.are_equal_exc_info_tuples(None, exc_info))
Beispiel #10
0
 def test_none_equals(self):
     self.assertTrue(misc.are_equal_exc_info_tuples(None, None))