Exemple #1
0
 def test_find_debian_copyright_file_invalid_path(self):
     saraza = hashlib.sha1()
     self.assertIsNone(find_debian_copyright_file(saraza.hexdigest()))
Exemple #2
0
 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)
Exemple #3
0
 def test_find_debian_copyright_file_inexistent_path(self):
     self.assertIsNone(find_debian_copyright_file(self.debian_dir))