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)