Exemple #1
0
 def test_no_build_number(self):
   # The file doesn't have to exist.
   filename = ('source_package_invalid_sha1-0.0.1-py2-none-any.whl')
   self.assertFalse(install.has_valid_sha1(filename, verbose=False))
Exemple #2
0
 def test_invalid_filename(self):
   # The file doesn't have to exist.
   filename = ('source_package.txt')
   self.assertFalse(install.has_valid_sha1(filename, verbose=False))
Exemple #3
0
 def test_bad_hash(self):
   filename = os.path.join(
     DATA_DIR, 'wheels', 'source_package_invalid_sha1-0.0.1-0_'
     + 'deadbeef3767ced3ec53b89b297e0268f1338b2b-py2-none-any.whl')
   self.assertFalse(install.has_valid_sha1(filename, verbose=False))