Esempio n. 1
0
 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)
Esempio n. 2
0
 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)