예제 #1
0
 def test_returns_the_empty_string_if_inside_a_method(self):
     test_name = point_at_test.point_at_test(test_source, 9)
     self.assertEqual('', test_name)
예제 #2
0
 def test_returns_the_empty_string_if_the_line_is_empty(self):
     test_name = point_at_test.point_at_test(test_source, 10)
     self.assertEqual('', test_name)
예제 #3
0
 def test_finds_the_second_function_on_a_class(self):
     test_name = point_at_test.point_at_test(test_source, 16)
     self.assertEqual('AnotherTestCaseClass.test_nothing_either', test_name)
예제 #4
0
 def test_finds_the_first_function_name(self):
     test_name = point_at_test.point_at_test(test_source, 7)
     self.assertEqual('TestCaseClass.test_something_happens', test_name)
예제 #5
0
 def test_finds_the_second_class_name(self):
     test_name = point_at_test.point_at_test(test_source, 11)
     self.assertEqual('AnotherTestCaseClass', test_name)
예제 #6
0
 def test_finds_a_class_name(self):
     test_name = point_at_test.point_at_test(test_source, 5)
     self.assertEqual('TestCaseClass', test_name)