Exemplo n.º 1
0
    def test_select_all_clobbers_method(self):
        identifiers = suite_runner._compute_test_identifiers(
            test_classes=[
                integration_test.IntegrationTest,
                integration2_test.Integration2Test
            ],
            selected_test_cases=['IntegrationTest.test_a', 'IntegrationTest'])
        self.assertEqual([('IntegrationTest', None)], identifiers)

        identifiers = suite_runner._compute_test_identifiers(
            test_classes=[
                integration_test.IntegrationTest,
                integration2_test.Integration2Test
            ],
            selected_test_cases=['IntegrationTest', 'IntegrationTest.test_a'])
        self.assertEqual([('IntegrationTest', None)], identifiers)
Exemplo n.º 2
0
 def test_select_no_args(self):
     identifiers = suite_runner._compute_test_identifiers(
         test_classes=[
             integration_test.IntegrationTest,
             integration2_test.Integration2Test
         ],
         selected_test_cases=None)
     self.assertEqual([('IntegrationTest', None),
                       ('Integration2Test', None)], identifiers)