Commits

Kelsey Hightower  committed 2c4b612

Fixes based on feedback from Alexis and Antoine Pitrou

  • Participants
  • Parent commits b82b2a9

Comments (0)

Files changed (1)

File mirror-authenticity

 # HG changeset patch
-# Parent 43a2375fb8a023cb62996f6f223d48a73fb342be
+# Parent dd8ceb307ffd129298cd7d00789c3e39d71c82bd
 Adding support for pep 381 -- Mirror Authenticity
 
 diff --git a/distutils2/index/errors.py b/distutils2/index/errors.py
 +                          url=url)
 +
 +        # test retrieving a server key when the SSL cert is valid.
-+        # 'url' is not a valid SSL url causing 'url_opener.open' to skip 
++        # 'url' is not a valid SSL url causing 'url_opener.open' to skip
 +        # SSL validation.
 +        server_key = get_server_key(url, use_cache=False, ca_certs=CA_CERTS)
 +        self.assertEqual(expected, server_key)
 +                     static_uri_paths=['serverkey', 'simple', 'serversig'])
 +    def test_is_trustable(self, server):
 +        # test verifying a project page when all arguments are set to None.
-+        url, package, server_key = None, None, None
-+        results = is_trustable(url, package, server_key)
++        url, project, server_key = None, None, None
++        results = is_trustable(url, project, server_key)
 +        self.assertFalse(results)
 +
 +        # test verifying a project
 +        # need to add the '/' here to make sure the test http server
 +        # finds the index.html page. This is not required when verifying
 +        # against PyPI mirrors.
-+        package = 'distutils2/'
++        project = 'distutils2/'
 +        server_key = get_server_key(url, use_cache=False, ca_certs=CA_CERTS)
-+        results = is_trustable(url, package, server_key)
++        results = is_trustable(url, project, server_key)
 +        self.assertTrue(results)
 +
 +