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

    identifiers = suite_runner.compute_selected_tests(
        test_classes=[
            integration_test.IntegrationTest, integration2_test.Integration2Test
        ],
        selected_tests=['IntegrationTest', 'IntegrationTest.test_a'])
    self.assertEqual({integration_test.IntegrationTest: None}, identifiers)
Exemplo n.º 2
0
 def test_select_by_class(self):
   identifiers = suite_runner.compute_selected_tests(
       test_classes=[
           integration_test.IntegrationTest, integration2_test.Integration2Test
       ],
       selected_tests=['IntegrationTest'])
   self.assertEqual({integration_test.IntegrationTest: None}, identifiers)
Exemplo n.º 3
0
 def test_select_by_method(self):
   identifiers = suite_runner.compute_selected_tests(
       test_classes=[
           integration_test.IntegrationTest, integration2_test.Integration2Test
       ],
       selected_tests=['IntegrationTest.test_a', 'IntegrationTest.test_b'])
   self.assertEqual({integration_test.IntegrationTest: ['test_a', 'test_b']},
                    identifiers)