• Home
  • Raw
  • Download

Lines Matching refs:assertRaises

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):
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)
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')
948 self.assertRaises(self.failureException, self.assertIsNone, False)
950 self.assertRaises(self.failureException, self.assertIsNotNone, None)
954 self.assertRaises(self.failureException, self.assertRegexpMatches,
962 self.assertRaises(ExceptionMock, Stub)
964 self.assertRaises((ValueError, ExceptionMock), Stub)
966 self.assertRaises(ValueError, int, '19', base=8)
968 with self.assertRaises(self.failureException):
969 self.assertRaises(ExceptionMock, lambda: 0)
971 with self.assertRaises(ExceptionMock):
972 self.assertRaises(ValueError, Stub)
979 with self.assertRaises(ExceptionMock):
982 with self.assertRaises((ValueError, ExceptionMock)) as cm:
988 with self.assertRaises(ValueError):
991 with self.assertRaises(self.failureException):
992 with self.assertRaises(ExceptionMock):
995 with self.assertRaises(ExceptionMock):
996 self.assertRaises(ValueError, Stub)
1027 self.assertRaises(TypeError, self.assertRaisesRegexp, MyExc, lambda: True)
1057 ctx = self.assertRaises(ExceptionMock)
1125 with self.assertRaises(KeyboardInterrupt):