def test_check_no_about_file_not_start_with_slash(self): test = [{'Directory': '/test/', 'file_name': 'test.c'}] result = genattrib.check_about_file_existence_and_format(test) self.assertFalse(result)
def test_check_have_about_file_not_start_with_slash(self): test = [{'Directory': '/test/', 'about_file': 'test.ABOUT'}] expected = [{'Directory': '/test/', 'about_file': '/test.ABOUT'}] result = genattrib.check_about_file_existence_and_format(test) self.assertEqual(expected, result)
def test_check_have_about_file_existence(self): test = [{'Directory': '/test/', 'about_file': '/test.ABOUT'}] result = genattrib.check_about_file_existence_and_format(test) self.assertEqual(test, result)