def test_find_debian_copyright_file_invalid_path(self): saraza = hashlib.sha1() self.assertIsNone(find_debian_copyright_file(saraza.hexdigest()))
def test_find_debian_copyright_file_valid_path(self): with open(self.copyright_file_path, "w"): pass self.assertEqual(find_debian_copyright_file(self.debian_dir), self.copyright_file_path)
def test_find_debian_copyright_file_inexistent_path(self): self.assertIsNone(find_debian_copyright_file(self.debian_dir))