summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorZhongyue Luo <lzyeval@gmail.com>2012-02-11 20:18:08 +0800
committerZhongyue Luo <lzyeval@gmail.com>2012-02-11 23:22:54 +0800
commit684ea9f2eef2926d3e5856eea124a47e475ff3ae (patch)
tree62d1ebebf3dcd3690e086fab01cc1124067e6fbb /tests
parent2ad09351f3c4f69ffcae16815b76eb28cb07a9b7 (diff)
downloadoslo-684ea9f2eef2926d3e5856eea124a47e475ff3ae.tar.gz
oslo-684ea9f2eef2926d3e5856eea124a47e475ff3ae.tar.xz
oslo-684ea9f2eef2926d3e5856eea124a47e475ff3ae.zip
PEP8 cleanup (openstack-common)
Fixes bug #930625 Remove backslash continuations in openstack-common. Fix type checking taboos. Change-Id: I49ddb9ff5fa5af760dcfccb52cb4793b71e02f19
Diffstat (limited to 'tests')
-rw-r--r--tests/unit/test_cfg.py4
-rw-r--r--tests/unit/test_wsgi.py4
2 files changed, 4 insertions, 4 deletions
diff --git a/tests/unit/test_cfg.py b/tests/unit/test_cfg.py
index 8dd6352..3a931da 100644
--- a/tests/unit/test_cfg.py
+++ b/tests/unit/test_cfg.py
@@ -115,8 +115,8 @@ class LeftoversTestCase(BaseTestCase):
class FindConfigFilesTestCase(BaseTestCase):
def test_find_config_files(self):
- config_files = \
- [os.path.expanduser('~/.blaa/blaa.conf'), '/etc/foo.conf']
+ config_files = [os.path.expanduser('~/.blaa/blaa.conf'),
+ '/etc/foo.conf']
self.stubs.Set(sys, 'argv', ['foo'])
self.stubs.Set(os.path, 'exists', lambda p: p in config_files)
diff --git a/tests/unit/test_wsgi.py b/tests/unit/test_wsgi.py
index c400329..16c5345 100644
--- a/tests/unit/test_wsgi.py
+++ b/tests/unit/test_wsgi.py
@@ -68,8 +68,8 @@ class RequestTest(unittest.TestCase):
self.assertEqual(result, "application/json")
request = wsgi.Request.blank('/tests/123')
- request.headers["Accept"] = \
- "application/json; q=0.3, application/xml; q=0.9"
+ request.headers["Accept"] = ("application/json; q=0.3, "
+ "application/xml; q=0.9")
result = request.best_match_content_type()
self.assertEqual(result, "application/xml")