[Python-checkins] distutils2: Update tests to use the new API
tarek.ziade
python-checkins at python.org
Thu Jul 15 01:38:05 CEST 2010
tarek.ziade pushed 618d28bfd736 to distutils2:
http://hg.python.org/distutils2/rev/618d28bfd736
changeset: 351:618d28bfd736
user: Alexis Metaireau <ametaireau at gmail.com>
date: Mon Jul 05 11:09:27 2010 +0200
summary: Update tests to use the new API
files: src/distutils2/tests/test_pypi_simple.py
diff --git a/src/distutils2/tests/test_pypi_simple.py b/src/distutils2/tests/test_pypi_simple.py
--- a/src/distutils2/tests/test_pypi_simple.py
+++ b/src/distutils2/tests/test_pypi_simple.py
@@ -7,7 +7,7 @@
import tempfile
import urllib2
-from distutils2.tests import support
+from distutils2.tests import support, run_unittest
from distutils2.tests.support import unittest
from distutils2.tests.pypi_server import use_pypi_server, PyPIServer, \
PYPI_DEFAULT_STATIC_PATH
@@ -84,7 +84,7 @@
url = 'http://example.com'
page = ('<a href="http://www.famfamfam.com]('
'http://www.famfamfam.com/">')
- index.process_index(url, page)
+ index._process_url(url, page)
@use_pypi_server("test_found_links")
def test_found_links(self, server):
@@ -214,9 +214,6 @@
self.assertIn("%s/simple/foobar/" % server.full_address,
index._processed_urls) # it's the simple index page
- # FIXME
- return
-
self.assertIn("%s/external/homepage.html" % server.full_address,
index._processed_urls) # the external homepage is rel="homepage"
self.assertNotIn("%s/external/nonrel.html" % server.full_address,
--
Repository URL: http://hg.python.org/distutils2
More information about the Python-checkins
mailing list