def test_it_should_identify_a_subset_of_test_suites_to_run_without_optionals(self): options, args = sampleOptions("--configuration tests/mocks/veripy.cfg --skip-optional host") c = Configuration(args, options) s = c.test_plan() self.assertEqual(5, len(s))
def test_it_should_not_run_test_suites_that_do_not_match_the_suite_pattern(self): options, args = sampleOptions("--configuration tests/mocks/veripy.cfg --suite TestSuiteA host") c = Configuration(args, options) s = c.test_plan() self.assertEqual(1, len(s)) self.assertEqual(ConfigurationTestCase.TestSuiteA, s[0])
def test_it_should_identify_a_subset_of_test_suites_to_run_without_optionals( self): options, args = sampleOptions( "--configuration tests/mocks/veripy.cfg --skip-optional host") c = Configuration(args, options) s = c.test_plan() self.assertEqual(5, len(s))
def test_it_should_identify_a_subset_of_test_suites_to_run_2_of_2(self): options, args = sampleOptions("--configuration tests/mocks/veripy.cfg switch-enterprise") c = Configuration(args, options) s = c.test_plan() self.assertEqual(3, len(s)) self.assertEqual(ConfigurationTestCase.TestSuiteA, s[0]) self.assertEqual(ConfigurationTestCase.TestSuiteB, s[1]) self.assertEqual(ConfigurationTestCase.TestSuiteC, s[2])
def test_it_should_not_run_test_suites_that_do_not_match_the_suite_pattern( self): options, args = sampleOptions( "--configuration tests/mocks/veripy.cfg --suite TestSuiteA host") c = Configuration(args, options) s = c.test_plan() self.assertEqual(1, len(s)) self.assertEqual(ConfigurationTestCase.TestSuiteA, s[0])
def test_it_should_identify_a_subset_of_test_suites_to_run_with_optional_protocols(self): options, args = sampleOptions("--configuration tests/mocks/veripy.cfg -p switch-is-a-router switch-enterprise") c = Configuration(args, options) s = c.test_plan() self.assertEqual(4, len(s)) self.assertEqual(ConfigurationTestCase.TestSuiteA, s[0]) self.assertEqual(ConfigurationTestCase.TestSuiteB, s[1]) self.assertEqual(ConfigurationTestCase.TestSuiteC, s[2]) self.assertEqual(ConfigurationTestCase.TestSuiteF, s[3])
def test_it_should_identify_a_subset_of_test_suites_to_run_2_of_2(self): options, args = sampleOptions( "--configuration tests/mocks/veripy.cfg switch-enterprise") c = Configuration(args, options) s = c.test_plan() self.assertEqual(3, len(s)) self.assertEqual(ConfigurationTestCase.TestSuiteA, s[0]) self.assertEqual(ConfigurationTestCase.TestSuiteB, s[1]) self.assertEqual(ConfigurationTestCase.TestSuiteC, s[2])
def test_it_should_identify_a_subset_of_test_suites_to_run_with_optional_protocols( self): options, args = sampleOptions( "--configuration tests/mocks/veripy.cfg -p switch-is-a-router switch-enterprise" ) c = Configuration(args, options) s = c.test_plan() self.assertEqual(4, len(s)) self.assertEqual(ConfigurationTestCase.TestSuiteA, s[0]) self.assertEqual(ConfigurationTestCase.TestSuiteB, s[1]) self.assertEqual(ConfigurationTestCase.TestSuiteC, s[2]) self.assertEqual(ConfigurationTestCase.TestSuiteF, s[3])