def test_multiply_tests_by_their_scenarios(self):
     loader = TestLoader()
     suite = loader.suiteClass()
     test_instance = PretendVaryingTest('test_nothing')
     multiply_tests_by_their_scenarios(test_instance, suite)
     self.assertEqual(['a', 'a', 'b', 'b'],
                      get_generated_test_attributes(suite, 'value'))
示例#2
0
 def test_multiply_tests_by_their_scenarios(self):
     loader = TestLoader()
     suite = loader.suiteClass()
     test_instance = PretendVaryingTest('test_nothing')
     multiply_tests_by_their_scenarios(
         test_instance,
         suite)
     self.assertEquals(
         ['a', 'a', 'b', 'b'],
         get_generated_test_attributes(suite, 'value'))
示例#3
0
 def test_multiply_tests_no_scenarios(self):
     """Tests with no scenarios attribute aren't multiplied"""
     suite = TestLoader().suiteClass()
     multiply_tests_by_their_scenarios(self,
         suite)
     self.assertLength(1, list(iter_suite_tests(suite)))
 def test_multiply_tests_no_scenarios(self):
     """Tests with no scenarios attribute aren't multiplied"""
     suite = TestLoader().suiteClass()
     multiply_tests_by_their_scenarios(self, suite)
     self.assertLength(1, list(iter_suite_tests(suite)))