Lines Matching refs:unittest
4 import unittest
26 # add compat assertIsInstance for old unittest.TestCase versions
28 if not hasattr(unittest.TestCase, "assertIsInstance"):
29 setattr(unittest.TestCase, "assertIsInstance", compat_assertIsInstance)
33 if not hasattr(unittest.TestCase, "assertCountEqual"):
34 if not hasattr(unittest.TestCase, "assertItemsEqual"):
36 setattr(unittest.TestCase, "assertItemsEqual", compat_assertItemsEqual)
38 setattr(unittest.TestCase,
40 unittest.TestCase.assertItemsEqual)
43 class PyHbacImport(unittest.TestCase):
73 class PyHbacRuleElementTest(unittest.TestCase):
148 class PyHbacRuleTest(unittest.TestCase):
287 class PyHbacRequestElementTest(unittest.TestCase):
334 class PyHbacRequestTest(unittest.TestCase):
466 class PyHbacModuleTest(unittest.TestCase):
517 suite = unittest.TestLoader().loadTestsFromTestCase(PyHbacImport)
518 res = unittest.TextTestRunner().run(suite)
529 suite = unittest.TestLoader().loadTestsFromTestCase(PyHbacRuleElementTest)
530 res = unittest.TextTestRunner().run(suite)
534 suite = unittest.TestLoader().loadTestsFromTestCase(PyHbacRuleTest)
535 res = unittest.TextTestRunner().run(suite)
539 suite = unittest.TestLoader().loadTestsFromTestCase(PyHbacRequestElementTest)
540 res = unittest.TextTestRunner().run(suite)
544 suite = unittest.TestLoader().loadTestsFromTestCase(PyHbacRequestTest)
545 res = unittest.TextTestRunner().run(suite)
549 suite = unittest.TestLoader().loadTestsFromTestCase(PyHbacModuleTest)
550 res = unittest.TextTestRunner().run(suite)