Stub test for leading whitespace bug.

This commit is contained in:
Martin Mahner 2016-12-02 13:38:47 +01:00
parent 4b6dbb34d5
commit d765a0ccda

View file

@ -131,6 +131,16 @@ class SnippetTestCase(TestCase):
self.assertEqual(response.status_code, 404) self.assertEqual(response.status_code, 404)
self.assertEqual(Snippet.objects.count(), 0) self.assertEqual(Snippet.objects.count(), 0)
# def test_new_snippet_`_whitespace(self):
# # POST data
# data = self.valid_form_data(content=' abc')
# response = self.client.post(self.new_url, data, follow=True)
# self.assertEqual(response.status_code, 200)
# self.assertEqual(Snippet.objects.count(), 1)
# print(response.content)
# self.assertContains(response, '    abc')
# ------------------------------------------------------------------------- # -------------------------------------------------------------------------
# Reply # Reply
# ------------------------------------------------------------------------- # -------------------------------------------------------------------------