From c595d99e6d99fab1b3d6d3da6f0343ce8a6b4008 Mon Sep 17 00:00:00 2001 From: Martin Mahner Date: Thu, 28 Mar 2013 22:56:41 +0100 Subject: [PATCH] Added a test hint --- dpaste/tests/test_api.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/dpaste/tests/test_api.py b/dpaste/tests/test_api.py index a49b947..bf426fd 100644 --- a/dpaste/tests/test_api.py +++ b/dpaste/tests/test_api.py @@ -18,14 +18,19 @@ class SnippetAPITestCase(TestCase): def test_empty(self): """ The browser sent a content field but with no data. + + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + + ALL tests fail due to a Piston bug: + https://bitbucket.org/jespern/django-piston/issue/221/attributeerror-httpresponseservererror """ + data = {} + # No data response = self.client.post(self.api_url, {}) self.assertEqual(response.status_code, 400) self.assertEqual(Snippet.objects.count(), 0) - data = {} - # No content data['content'] = '' response = self.client.post(self.api_url, data)