diff options
author | Jason R. Coombs <jaraco@jaraco.com> | 2013-07-15 13:31:00 -0400 |
---|---|---|
committer | Jason R. Coombs <jaraco@jaraco.com> | 2013-07-15 13:31:00 -0400 |
commit | 915f05b7445af2c51b63d22e429d9a7397221518 (patch) | |
tree | 9ff03ffcad38171cba39620cc0e68d98eed9f2d3 /setuptools/tests | |
parent | b34eec598da6d2668de58cba166f5ac5d063ba9d (diff) | |
download | python-setuptools-git-0.9.3.tar.gz |
Use 'is_valid' instead of simply 'valid' or 'check', which are less clear about the purpose of the method. Fixes AttributeError introduces in 0.9.2. Fixes #42.0.9.3
Diffstat (limited to 'setuptools/tests')
-rw-r--r-- | setuptools/tests/test_packageindex.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/setuptools/tests/test_packageindex.py b/setuptools/tests/test_packageindex.py index d3698c9e..4f2d382c 100644 --- a/setuptools/tests/test_packageindex.py +++ b/setuptools/tests/test_packageindex.py @@ -151,18 +151,18 @@ class TestContentCheckers(unittest.TestCase): checker.feed('You should probably not be using MD5'.encode('ascii')) self.assertEqual(checker.hash.hexdigest(), 'f12895fdffbd45007040d2e44df98478') - self.assertTrue(checker.check()) + self.assertTrue(checker.is_valid()) def test_other_fragment(self): "Content checks should succeed silently if no hash is present" checker = setuptools.package_index.HashChecker.from_url( 'http://foo/bar#something%20completely%20different') checker.feed('anything'.encode('ascii')) - self.assertTrue(checker.check()) + self.assertTrue(checker.is_valid()) def test_blank_md5(self): "Content checks should succeed if a hash is empty" checker = setuptools.package_index.HashChecker.from_url( 'http://foo/bar#md5=') checker.feed('anything'.encode('ascii')) - self.assertTrue(checker.check()) + self.assertTrue(checker.is_valid()) |