Пример #1
0
 def test_create_test_suites(self):
     test_suite = gae_suite.create_test_suites(
         test_target='core.tests.gae_suite_test')
     self.assertEqual(len(test_suite), 1)
     self.assertEqual(type(test_suite[0]), unittest.suite.TestSuite)
Пример #2
0
 def test_cannot_create_test_suites_with_invalid_test_target_format(self):
     with self.assertRaisesRegexp(
         Exception, 'The delimiter in test_target should be a dot (.)'):
         gae_suite.create_test_suites(test_target='core/controllers')