Added a test hint

This commit is contained in:
Martin Mahner 2013-03-28 22:56:41 +01:00
parent cf4b59b22d
commit c595d99e6d

View file

@ -18,14 +18,19 @@ class SnippetAPITestCase(TestCase):
def test_empty(self): def test_empty(self):
""" """
The browser sent a content field but with no data. 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 # No data
response = self.client.post(self.api_url, {}) response = self.client.post(self.api_url, {})
self.assertEqual(response.status_code, 400) self.assertEqual(response.status_code, 400)
self.assertEqual(Snippet.objects.count(), 0) self.assertEqual(Snippet.objects.count(), 0)
data = {}
# No content # No content
data['content'] = '' data['content'] = ''
response = self.client.post(self.api_url, data) response = self.client.post(self.api_url, data)