From 3a4b9add6ace9a1ba00d900841a13aea8f4b9632 Mon Sep 17 00:00:00 2001 From: Kevin McCarthy Date: Wed, 30 May 2012 21:09:28 -1000 Subject: [PATCH] PEP8 --- test.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/test.py b/test.py index 54362d5..14ef47c 100644 --- a/test.py +++ b/test.py @@ -5,6 +5,7 @@ import urllib2 TEST_CASSETTE_FILE = 'test/test_req.yaml' + class TestHttpRequest(unittest.TestCase): def setUp(self): @@ -16,12 +17,12 @@ class TestHttpRequest(unittest.TestCase): def test_response_code(self): with vcr.use_cassette(TEST_CASSETTE_FILE): code = urllib2.urlopen('http://www.iana.org/domains/example/').getcode() - self.assertEqual(code,urllib2.urlopen('http://www.iana.org/domains/example/').getcode()) + self.assertEqual(code, urllib2.urlopen('http://www.iana.org/domains/example/').getcode()) def test_response_body(self): with vcr.use_cassette('test/synopsis.yaml'): body = urllib2.urlopen('http://www.iana.org/domains/example/').read() - self.assertEqual(body,urllib2.urlopen('http://www.iana.org/domains/example/').read()) + self.assertEqual(body, urllib2.urlopen('http://www.iana.org/domains/example/').read()) if __name__ == '__main__':