Exemplo n.º 1
0
    def test_process_ut_method_blank_name(self):
        gen = CompileTags(source_module_name='sample.py')
        gen.process_unit_test(test_name='', context=self.__class__)

        ut_module = _test_module_details['sample']
        ut_class = ut_module.class_list['sampleTests']
        self.assertTrue('CompileTagsTestsTests' in ut_class.method_names)
Exemplo n.º 2
0
 def test_process_ut_method_no_context(self):
     gen = CompileTags(source_module_name='sample.py')
     gen.process_unit_test(test_name='some_test', context=None)