Lines Matching refs:failureException
296 self.assertIs(Foo('test').failureException, AssertionError)
312 failureException = RuntimeError variable in Test_TestCase.test_failureException__subclassing__explicit_raise.Foo
314 self.assertIs(Foo('test').failureException, RuntimeError)
335 failureException = RuntimeError variable in Test_TestCase.test_failureException__subclassing__implicit_raise.Foo
337 self.assertIs(Foo('test').failureException, RuntimeError)
437 self.assertRaises(self.failureException, self.assertIs, thing, object())
442 self.assertRaises(self.failureException, self.assertIsNot, thing, thing)
447 self.assertRaises(self.failureException, self.assertIsInstance,
453 self.assertRaises(self.failureException, self.assertNotIsInstance,
467 self.assertRaises(self.failureException, self.assertIn, 'x', 'abc')
468 self.assertRaises(self.failureException, self.assertIn, 4, [1, 2, 3])
469 self.assertRaises(self.failureException, self.assertIn, 'elephant',
472 self.assertRaises(self.failureException, self.assertNotIn, 'c', 'abc')
473 self.assertRaises(self.failureException, self.assertNotIn, 1, [1, 2, 3])
474 self.assertRaises(self.failureException, self.assertNotIn, 'cow',
484 with self.assertRaises(self.failureException):
487 with self.assertRaises(self.failureException):
490 with self.assertRaises(self.failureException):
493 with self.assertRaises(self.failureException):
496 with self.assertRaises(self.failureException):
502 with self.assertRaises(self.failureException):
517 except self.failureException:
521 except self.failureException:
525 except self.failureException:
536 self.assertRaises(self.failureException, self.assertEqual, a, b)
537 self.assertRaises(self.failureException, self.assertEqual, a, b,
539 self.assertRaises(self.failureException, self.assertEqual, a, b,
549 self.assertRaises(unittest.TestCase.failureException,
551 self.assertRaises(unittest.TestCase.failureException,
553 self.assertRaises(unittest.TestCase.failureException,
562 self.assertRaises(self.failureException, self.assertListEqual,
564 self.assertRaises(self.failureException, self.assertTupleEqual,
566 self.assertRaises(self.failureException, self.assertListEqual, None, b)
567 self.assertRaises(self.failureException, self.assertTupleEqual, None,
569 self.assertRaises(self.failureException, self.assertSequenceEqual,
571 self.assertRaises(self.failureException, self.assertListEqual, 1, 1)
572 self.assertRaises(self.failureException, self.assertTupleEqual, 1, 1)
573 self.assertRaises(self.failureException, self.assertSequenceEqual,
580 self.assertRaises(unittest.TestCase.failureException,
587 self.assertRaises(unittest.TestCase.failureException,
590 self.assertRaises(self.failureException, self.assertDictEqual, None, d)
591 self.assertRaises(self.failureException, self.assertDictEqual, [], d)
592 self.assertRaises(self.failureException, self.assertDictEqual, 1, 1)
606 except self.failureException as e:
616 except self.failureException as e:
626 except self.failureException as e:
654 except self.failureException as e:
666 except self.failureException as e:
684 with self.assertRaises(self.failureException) as cm:
701 with self.assertRaises(self.failureException) as cm:
713 self.assertRaises(self.failureException, self.assertItemsEqual,
715 self.assertRaises(self.failureException, self.assertItemsEqual,
717 self.assertRaises(self.failureException, self.assertItemsEqual,
719 self.assertRaises(self.failureException, self.assertItemsEqual,
721 self.assertRaises(self.failureException, self.assertItemsEqual,
731 self.assertRaises(self.failureException, self.assertItemsEqual,
737 self.assertRaises(self.failureException, self.assertItemsEqual,
739 self.assertRaises(self.failureException, self.assertItemsEqual,
743 self.assertRaises(self.failureException, self.assertItemsEqual,
745 self.assertRaises(self.failureException, self.assertItemsEqual,
747 self.assertRaises(self.failureException, self.assertItemsEqual,
774 self.assertRaises(self.failureException, self.assertSetEqual, None, set2)
775 self.assertRaises(self.failureException, self.assertSetEqual, [], set2)
776 self.assertRaises(self.failureException, self.assertSetEqual, set1, None)
777 self.assertRaises(self.failureException, self.assertSetEqual, set1, [])
781 self.assertRaises(self.failureException, self.assertSetEqual, set1, set2)
789 self.assertRaises(self.failureException, self.assertSetEqual, set1, set2)
793 self.assertRaises(self.failureException, self.assertSetEqual, set1, set2)
801 self.assertRaises(self.failureException, self.assertSetEqual, set1, set2)
802 self.assertRaises(self.failureException, self.assertSetEqual, set2, set1)
807 self.assertRaises(self.failureException, self.assertSetEqual, set1, set2)
817 self.assertRaises(self.failureException, self.assertGreater, 1, 2)
818 self.assertRaises(self.failureException, self.assertGreater, 1, 1)
819 self.assertRaises(self.failureException, self.assertGreaterEqual, 1, 2)
820 self.assertRaises(self.failureException, self.assertLess, 2, 1)
821 self.assertRaises(self.failureException, self.assertLess, 1, 1)
822 self.assertRaises(self.failureException, self.assertLessEqual, 2, 1)
831 self.assertRaises(self.failureException, self.assertGreater, 1.0, 1.1)
832 self.assertRaises(self.failureException, self.assertGreater, 1.0, 1.0)
833 self.assertRaises(self.failureException, self.assertGreaterEqual, 1.0, 1.1)
834 self.assertRaises(self.failureException, self.assertLess, 1.1, 1.0)
835 self.assertRaises(self.failureException, self.assertLess, 1.0, 1.0)
836 self.assertRaises(self.failureException, self.assertLessEqual, 1.1, 1.0)
845 self.assertRaises(self.failureException, self.assertGreater, 'ant', 'bug')
846 self.assertRaises(self.failureException, self.assertGreater, 'ant', 'ant')
847 self.assertRaises(self.failureException, self.assertGreaterEqual, 'ant', 'bug')
848 self.assertRaises(self.failureException, self.assertLess, 'bug', 'ant')
849 self.assertRaises(self.failureException, self.assertLess, 'ant', 'ant')
850 self.assertRaises(self.failureException, self.assertLessEqual, 'bug', 'ant')
859 self.assertRaises(self.failureException, self.assertGreater, u'ant', u'bug')
860 self.assertRaises(self.failureException, self.assertGreater, u'ant', u'ant')
861 self.assertRaises(self.failureException, self.assertGreaterEqual, u'ant',
863 self.assertRaises(self.failureException, self.assertLess, u'bug', u'ant')
864 self.assertRaises(self.failureException, self.assertLess, u'ant', u'ant')
865 self.assertRaises(self.failureException, self.assertLessEqual, u'bug', u'ant')
880 self.assertRaises(self.failureException, self.assertGreater, 'ant', u'bug')
881 self.assertRaises(self.failureException, self.assertGreater, u'ant', 'bug')
882 self.assertRaises(self.failureException, self.assertGreater, 'ant', u'ant')
883 self.assertRaises(self.failureException, self.assertGreater, u'ant', 'ant')
884 self.assertRaises(self.failureException, self.assertGreaterEqual, 'ant',
886 self.assertRaises(self.failureException, self.assertGreaterEqual, u'ant',
888 self.assertRaises(self.failureException, self.assertLess, 'bug', u'ant')
889 self.assertRaises(self.failureException, self.assertLess, u'bug', 'ant')
890 self.assertRaises(self.failureException, self.assertLess, 'ant', u'ant')
891 self.assertRaises(self.failureException, self.assertLess, u'ant', 'ant')
892 self.assertRaises(self.failureException, self.assertLessEqual, 'bug', u'ant')
893 self.assertRaises(self.failureException, self.assertLessEqual, u'bug', 'ant')
923 except self.failureException, e:
942 except self.failureException as e:
948 self.assertRaises(self.failureException, self.assertIsNone, False)
950 self.assertRaises(self.failureException, self.assertIsNotNone, None)
954 self.assertRaises(self.failureException, self.assertRegexpMatches,
968 with self.assertRaises(self.failureException):
991 with self.assertRaises(self.failureException):
1011 self.failureException, '^Exception not raised$',
1015 self.failureException, '^Exception not raised$',
1019 self.failureException, '^Exception not raised$',
1034 self.failureException,
1039 self.failureException,
1044 self.failureException,