コード例 #1
0
ファイル: test_utils.py プロジェクト: agustinhenze/dlt
 def test_find_debian_copyright_file_invalid_path(self):
     saraza = hashlib.sha1()
     self.assertIsNone(find_debian_copyright_file(saraza.hexdigest()))
コード例 #2
0
ファイル: test_utils.py プロジェクト: agustinhenze/dlt
 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)
コード例 #3
0
ファイル: test_utils.py プロジェクト: agustinhenze/dlt
 def test_find_debian_copyright_file_inexistent_path(self):
     self.assertIsNone(find_debian_copyright_file(self.debian_dir))