test(pep8): Fix errors reported by latest flake8 version

This commit is contained in:
kgriffs
2014-03-26 14:35:37 -05:00
parent d38f9cfe4d
commit 19d14ee182
4 changed files with 7 additions and 7 deletions

View File

@@ -286,9 +286,9 @@ class API(object):
# adds (will cause the last one to win).
self._error_handlers.insert(0, (exception, handler))
#----------------------------------------------------------------------------
# Helpers
#----------------------------------------------------------------------------
# ------------------------------------------------------------------------
# Helpers
# ------------------------------------------------------------------------
def _get_responder(self, path, method):
"""Searches routes for a matching responder

View File

@@ -222,9 +222,9 @@ def create_http_method_map(resource, uri_fields, before, after):
return method_map
#-----------------------------------------------------------------------------
# -----------------------------------------------------------------------------
# Helpers
#-----------------------------------------------------------------------------
# -----------------------------------------------------------------------------
def _wrap_with_hooks(before, after, responder):

View File

@@ -394,7 +394,7 @@ class Request(object):
href=href,
href_text=href_text)
# implicit return None
return None
@property
def uri(self):

View File

@@ -251,7 +251,7 @@ class TestHTTPError(testing.TestBase):
body = self.simulate_request('/unicode')
self.assertTrue(unicode_resource.called)
#self.assertEqual(self.srmock.status, falcon.HTTP_792)
self.assertEqual(self.srmock.status, falcon.HTTP_792)
self.assertEqual(expected_body, body)
def test_401(self):