From 45bcdcaa2288a09c44306a3d0f0245df4d014897 Mon Sep 17 00:00:00 2001 From: Adam Gandelman Date: Mon, 17 Sep 2012 16:55:43 -0700 Subject: [PATCH] Fix some pep8 issues. Replace a few '== None' comparisons with 'if None' to fix E711 pep8 failures in test suite. Change-Id: Ibce88b74cd19233820f9b00a4eacdabff6c71a6b --- tests/v1/fakes.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/tests/v1/fakes.py b/tests/v1/fakes.py index 2bb879197..57fa31f73 100644 --- a/tests/v1/fakes.py +++ b/tests/v1/fakes.py @@ -121,20 +121,20 @@ class FakeHTTPClient(base_client.HTTPClient): if action == 'os-attach': assert body[action].keys() == ['instance_uuid', 'mountpoint'] elif action == 'os-detach': - assert body[action] == None + assert body[action] is None elif action == 'os-reserve': - assert body[action] == None + assert body[action] is None elif action == 'os-unreserve': - assert body[action] == None + assert body[action] is None elif action == 'os-initialize_connection': assert body[action].keys() == ['connector'] return (202, {'connection_info': 'foos'}) elif action == 'os-terminate_connection': assert body[action].keys() == ['connector'] elif action == 'os-begin_detaching': - assert body[action] == None + assert body[action] is None elif action == 'os-roll_detaching': - assert body[action] == None + assert body[action] is None else: raise AssertionError("Unexpected server action: %s" % action) return (resp, _body)