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