From d765a0ccda161ef133b2246395420c1e18a4693b Mon Sep 17 00:00:00 2001 From: Martin Mahner Date: Fri, 2 Dec 2016 13:38:47 +0100 Subject: [PATCH] Stub test for leading whitespace bug. --- dpaste/tests/test_snippet.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/dpaste/tests/test_snippet.py b/dpaste/tests/test_snippet.py index 56eb1a3..ec4db29 100644 --- a/dpaste/tests/test_snippet.py +++ b/dpaste/tests/test_snippet.py @@ -131,6 +131,16 @@ class SnippetTestCase(TestCase): self.assertEqual(response.status_code, 404) 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 # -------------------------------------------------------------------------