summaryrefslogtreecommitdiffstats
path: root/Lib/distutils
diff options
context:
space:
mode:
authorÉric Araujo <merwok@netwok.org>2011-04-14 01:49:19 (GMT)
committerÉric Araujo <merwok@netwok.org>2011-04-14 01:49:19 (GMT)
commit691840f2189d78e50e63ec04f5ce71b9d3049c54 (patch)
tree4a118ad34b715a49fa13f7a31c413c3106bad59a /Lib/distutils
parent395ba35a9224339bdcaf20ad966ceaf084142444 (diff)
downloadcpython-691840f2189d78e50e63ec04f5ce71b9d3049c54.zip
cpython-691840f2189d78e50e63ec04f5ce71b9d3049c54.tar.gz
cpython-691840f2189d78e50e63ec04f5ce71b9d3049c54.tar.bz2
Fix improper tests in RegisterTestCase
Diffstat (limited to 'Lib/distutils')
-rw-r--r--Lib/distutils/tests/test_register.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/Lib/distutils/tests/test_register.py b/Lib/distutils/tests/test_register.py
index c712f56..cb72a11 100644
--- a/Lib/distutils/tests/test_register.py
+++ b/Lib/distutils/tests/test_register.py
@@ -137,7 +137,7 @@ class RegisterTestCase(PyPIRCCommandTestCase):
# let's see what the server received : we should
# have 2 similar requests
- self.assertTrue(self.conn.reqs, 2)
+ self.assertEqual(len(self.conn.reqs), 2)
req1 = dict(self.conn.reqs[0].headers)
req2 = dict(self.conn.reqs[1].headers)
@@ -169,7 +169,7 @@ class RegisterTestCase(PyPIRCCommandTestCase):
del register_module.input
# we should have send a request
- self.assertTrue(self.conn.reqs, 1)
+ self.assertEqual(len(self.conn.reqs), 1)
req = self.conn.reqs[0]
headers = dict(req.headers)
self.assertEqual(headers['Content-length'], '608')
@@ -187,7 +187,7 @@ class RegisterTestCase(PyPIRCCommandTestCase):
del register_module.input
# we should have send a request
- self.assertTrue(self.conn.reqs, 1)
+ self.assertEqual(len(self.conn.reqs), 1)
req = self.conn.reqs[0]
headers = dict(req.headers)
self.assertEqual(headers['Content-length'], '290')