~ubuntu-server-dev/python-cinderclient/grizzly

« back to all changes in this revision

Viewing changes to debian/patches/fix-pep8-errors.patch

  • Committer: Chuck Short
  • Date: 2012-06-27 17:40:10 UTC
  • Revision ID: zulcss@ubuntu.com-20120627174010-k9li6upi3s9dtkvm
initial release

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
commit 95345f28deeb421ace7a3e3854fd4eb0075986bf
 
2
Author: Chuck Short <chuck.short@canonical.com>
 
3
Date:   Wed Jun 27 13:25:00 2012 -0400
 
4
 
 
5
    Fix pep8 errors
 
6
    
 
7
    Fix pep8 errors with 1.2
 
8
    
 
9
    Change-Id: I89afaab4f70207b5367ec3fcf8877538eb3bb703
 
10
    Signed-off-by: Chuck Short <chuck.short@canonical.com>
 
11
 
 
12
diff --git a/tests/v1/fakes.py b/tests/v1/fakes.py
 
13
index d93c9a4..d1bde89 100644
 
14
--- a/tests/v1/fakes.py
 
15
+++ b/tests/v1/fakes.py
 
16
@@ -153,11 +153,11 @@ class FakeHTTPClient(base_client.HTTPClient):
 
17
         if action == 'os-attach':
 
18
             assert body[action].keys() == ['instance_uuid', 'mountpoint']
 
19
         elif action == 'os-detach':
 
20
-            assert body[action] == None
 
21
+            assert body[action] is None
 
22
         elif action == 'os-reserve':
 
23
-            assert body[action] == None
 
24
+            assert body[action] is None
 
25
         elif action == 'os-unreserve':
 
26
-            assert body[action] == None
 
27
+            assert body[action] is None
 
28
         elif action == 'os-initialize_connection':
 
29
             assert body[action].keys() == ['connector']
 
30
             return (202, {'connection_info': 'foos'})