Commit 67449a2c authored by Laurent Bachelier's avatar Laurent Bachelier 🐧

pastebin: This was only needed for this test

parent d300cd9d
......@@ -150,9 +150,7 @@ class PastebinBrowser(LoginBrowser):
def get_paste(self, url):
m = self.paste.match(url)
if m:
paste = PastebinPaste(m.groupdict()['id'])
paste.url =
return paste
return PastebinPaste(m.groupdict()['id'])
def get_contents(self, _id):
......@@ -42,7 +42,7 @@ class PastebinTest(BackendTest):
p = self.backend.get_paste(_id)
self.backend.fillobj(p, ['contents'])
assert p.title is NotLoaded
assert p.page_url == ''
assert p.page_url is None
assert p.contents == u'prout'
assert p.public is NotLoaded
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment