paste* backends: Use the check_url decorator
This commit is contained in:
parent
4d8030b8dd
commit
c1c9b39e9d
4 changed files with 15 additions and 2 deletions
|
|
@ -69,3 +69,7 @@ class PastebinTest(BackendTest):
|
|||
# raw method
|
||||
p = self.backend.get_paste(_id)
|
||||
self.assertRaises(PasteNotFound, self.backend.fillobj, p, ['contents'])
|
||||
|
||||
def test_checkurl(self):
|
||||
# call with an URL we can't handle with this backend
|
||||
assert self.backend.get_paste('http://pastealacon.com/1') is None
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue