def test_normalize_about_file_paths_updates_about_file_paths(self): test = [{'Directory': '/test/', 'about_file': 'test.ABOUT'}] expected = [{'Directory': '/test/', 'about_file': '/test.ABOUT'}] result = genattrib.normalize_about_file_paths(test) self.assertEqual(expected, result)
def test_normalize_about_file_paths_does_not_change_other_paths(self): test = [{'Directory': '/test/', 'file_name': 'test.c'}] result = genattrib.normalize_about_file_paths(test) self.assertEqual(test, result)