From 24c2448ce536d76da35370a01bbaba18641e16c0 Mon Sep 17 00:00:00 2001 From: Jamie Painter Date: Wed, 6 Feb 2013 11:00:51 -0500 Subject: [PATCH] fix(@style): Fixes comment violations. --- falcon/testing/helpers.py | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/falcon/testing/helpers.py b/falcon/testing/helpers.py index e21c817..259c0aa 100644 --- a/falcon/testing/helpers.py +++ b/falcon/testing/helpers.py @@ -67,10 +67,14 @@ class TestSuite(testtools.TestCase): prepare() def _simulate_request(self, path, **kwargs): + """ Simulates a request. + + Simulates a request to the API for testing purposes. + + See: create_environ() for suitable arguments + a variable length argument list. See create_environ() """ - Simulates a request to the specified path using - a varible arugment list. - """ + if not path: path = '/' @@ -82,7 +86,7 @@ def create_environ(path='/', query_string='', protocol='HTTP/1.1', port='80', headers=None, script='', body='', method='GET', wsgierrors=None): - """ Creates a 'mock' environment suitable for testing. + """ Creates a 'mock' environment for testing Args: path: The path for the request.