Use assertGreater instead of assertTrue(x > y).

This commit is contained in:
Alexandre Vassalotti 2009-07-22 21:29:01 +00:00
parent 5ff02352e8
commit 953f5583b6
1 changed files with 1 additions and 1 deletions

View File

@ -214,7 +214,7 @@ class TestAsynchat(unittest.TestCase):
# the server might have been able to send a byte or two back, but this
# at least checks that it received something and didn't just fail
# (which could still result in the client not having received anything)
self.assertTrue(len(s.buffer) > 0)
self.assertGreater(len(s.buffer), 0)
class TestAsynchat_WithPoll(TestAsynchat):