mirror of
https://github.com/DarrenOfficial/dpaste.git
synced 2024-11-15 08:02:54 +11:00
Fix tests
This commit is contained in:
parent
815bc322b0
commit
826693dd6f
1 changed files with 2 additions and 2 deletions
|
@ -56,11 +56,11 @@ class SnippetAPITestCase(TestCase):
|
|||
|
||||
# The response is a URL with quotes
|
||||
self.assertTrue(response.content.startswith('"'))
|
||||
self.assertTrue(response.content.endswith('"'))
|
||||
self.assertTrue(response.content.endswith('"\n'))
|
||||
|
||||
# The URL returned is the absolute url to the snippet.
|
||||
# If we call that url our snippet should be in the page content.
|
||||
snippet_url = response.content[1:-1]
|
||||
snippet_url = response.content.strip()[1:-1]
|
||||
response = self.client.get(snippet_url)
|
||||
|
||||
self.assertEqual(response.status_code, 200)
|
||||
|
|
Loading…
Reference in a new issue