def test_get_test_case_at_on_module_first_line(self):
     """ Test lookup for case name when the line number is set to the
     module first line. """
     result = code_analyzer.get_test_case_at(self.source, (0, 0))
     self.assertEqual(result, "")
Exemple #2
0
 def test_get_test_case_at_on_module_first_line(self):
     """ Test lookup for case name when the line number is set to the
     module first line. """
     result = code_analyzer.get_test_case_at(self.source, (0, 0))
     self.assertEqual(result, '')
 def test_get_test_case_at_on_definition(self):
     """ Test lookup for test case name when the line number is set on the
     case definition. """
     result = code_analyzer.get_test_case_at(self.source, (15, 0))
     self.assertEqual(result, "MyTestClass")
Exemple #4
0
 def test_get_test_case_at_on_definition(self):
     """ Test lookup for test case name when the line number is set on the
     case definition. """
     result = code_analyzer.get_test_case_at(self.source, (15, 0))
     self.assertEqual(result, "MyTestClass")