def test_empty_input_produces_empty_testsuite(self):
     names = []
     suite = pte.koans_suite(names)
     self.assertTrue(isinstance(suite, unittest.TestSuite))
     expected = []
     received = list(suite)
     self.assertListEqual(expected, received)
     return
Exemple #2
0
 def test_empty_input_produces_empty_testsuite(self):
     names = []
     suite = pte.koans_suite(names)
     self.assertTrue(isinstance(suite, unittest.TestSuite))
     expected = []
     received = list(suite)
     self.assertListEqual(expected, received)
     return
 def test_testcase_names_appear_in_testsuite(self):
     names = [
       'koans.about_asserts.AboutAsserts',
       'koans.about_none.AboutNone',
       'koans.about_strings.AboutStrings',
       ]
     suite = pte.koans_suite(names)
     self.assertTrue(isinstance(suite, unittest.TestSuite))
     expected = [
       'AboutAsserts',
       'AboutNone',
       'AboutStrings',
       ]
     received = sorted(set(test.__class__.__name__ for test in suite))
     self.assertListEqual(expected, received)
     return
Exemple #4
0
 def test_testcase_names_appear_in_testsuite(self):
     names = [
         'koans.about_asserts.AboutAsserts',
         'koans.about_none.AboutNone',
         'koans.about_strings.AboutStrings',
     ]
     suite = pte.koans_suite(names)
     self.assertTrue(isinstance(suite, unittest.TestSuite))
     expected = [
         'AboutAsserts',
         'AboutNone',
         'AboutStrings',
     ]
     received = sorted(set(test.__class__.__name__ for test in suite))
     self.assertListEqual(expected, received)
     return