Ejemplo n.º 1
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.assertEqual(['a', 'a', 'b', 'b'],
                      get_generated_test_attributes(suite, 'value'))
Ejemplo n.º 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'))
Ejemplo n.º 3
0
 def test_multiply_tests(self):
     loader = TestLoader()
     suite = loader.suiteClass()
     multiply_tests(
         self,
         vary_by_color(),
         suite)
     self.assertEquals(
         ['blue', 'green', 'red'],
         get_generated_test_attributes(suite, 'color'))
Ejemplo n.º 4
0
 def test_multiply_tests(self):
     loader = TestLoader()
     suite = loader.suiteClass()
     multiply_tests(self, vary_by_color(), suite)
     self.assertEqual(['blue', 'green', 'red'],
                      get_generated_test_attributes(suite, 'color'))