def test_get_offset_for_function_extra_lines(self, check_output): setup = Setup() result = setup.get_offset_for_function('app', 'func2') expected = 8 self.assertEqual(result, expected)
def test_get_offset_for_function_no_match(self, check_output): setup = Setup() result = setup.get_offset_for_function('app', 'func') expected = 0 self.assertEqual(result, expected)
def test_get_offset_for_function_hexadecimal(self, check_output): setup = Setup() result = setup.get_offset_for_function('app', 'func1') expected = 26 self.assertEqual(result, expected)