From 8da418635abe7915b22c8266ea9558101e5b20c4 Mon Sep 17 00:00:00 2001 From: Ali Afshar Date: Thu, 16 Dec 2010 10:17:26 +0100 Subject: [PATCH] Reformatted docstrings to be consistent with the rest of the code. --- tests/test_errors.py | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/tests/test_errors.py b/tests/test_errors.py index fbb4778..44b2a14 100644 --- a/tests/test_errors.py +++ b/tests/test_errors.py @@ -32,36 +32,31 @@ def fake_response(data, headers): class Error(unittest.TestCase): - """Test handling of error bodies - """ + """Test handling of error bodies.""" def test_json_body(self): - """Test a nicely formed, expected error response - """ + """Test a nicely formed, expected error response.""" resp, content = fake_response(json_error_content, {'status':'400', 'content-type': 'application/json'}) error = HttpError(resp, content) self.assertEqual(str(error), '') def test_bad_json_body(self): - """Test handling of bodies with invalid json - """ + """Test handling of bodies with invalid json.""" resp, content = fake_response('{', {'status':'400', 'content-type': 'application/json'}) error = HttpError(resp, content) self.assertEqual(str(error), '') def test_missing_message_json_body(self): - """Test handling of bodies with missing expected 'message' element - """ + """Test handling of bodies with missing expected 'message' element.""" resp, content = fake_response('{}', {'status':'400', 'content-type': 'application/json'}) error = HttpError(resp, content) self.assertEqual(str(error), '') def test_non_json(self): - """Test handling of non-JSON bodies - """ + """Test handling of non-JSON bodies""" resp, content = fake_response('NOT OK', {'status':'400'}) error = HttpError(resp, content) self.assertEqual(str(error), '')