Пример #1
0
 def test_registration(self):
     import sys
     import unittests.resources.checks_unlisted.good as mod
     checks = mod._rfm_gettests()
     assert 13 == len(checks)
     assert [mod.MyBaseTest(0, 0),
             mod.MyBaseTest(0, 1),
             mod.MyBaseTest(1, 0),
             mod.MyBaseTest(1, 1),
             mod.MyBaseTest(2, 0),
             mod.MyBaseTest(2, 1),
             mod.AnotherBaseTest(0, 0),
             mod.AnotherBaseTest(0, 1),
             mod.AnotherBaseTest(1, 0),
             mod.AnotherBaseTest(1, 1),
             mod.AnotherBaseTest(2, 0),
             mod.AnotherBaseTest(2, 1),
             mod.MyBaseTest(10, 20)] == checks
Пример #2
0
 def test_registration(self):
     import sys
     import unittests.resources.checks_unlisted.good as mod
     checks = mod._rfm_gettests()
     self.assertEqual(13, len(checks))
     self.assertEqual([mod.MyBaseTest(0, 0),
                       mod.MyBaseTest(0, 1),
                       mod.MyBaseTest(1, 0),
                       mod.MyBaseTest(1, 1),
                       mod.MyBaseTest(2, 0),
                       mod.MyBaseTest(2, 1),
                       mod.AnotherBaseTest(0, 0),
                       mod.AnotherBaseTest(0, 1),
                       mod.AnotherBaseTest(1, 0),
                       mod.AnotherBaseTest(1, 1),
                       mod.AnotherBaseTest(2, 0),
                       mod.AnotherBaseTest(2, 1),
                       mod.MyBaseTest(10, 20)], checks)