mirror of
https://github.com/DarrenOfficial/dpaste.git
synced 2024-12-24 07:33:07 +11:00
Stub test for leading whitespace bug.
This commit is contained in:
parent
4b6dbb34d5
commit
d765a0ccda
1 changed files with 10 additions and 0 deletions
|
@ -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
|
||||
# -------------------------------------------------------------------------
|
||||
|
|
Loading…
Reference in a new issue