CapPaste: add method to find if a paste is suitable for the backend
Basic support in pastoob added (there is no way yet to change the default options). Backends support the "public/private" requirement.
This commit is contained in:
parent
9022435e49
commit
fbd4511ffa
6 changed files with 50 additions and 3 deletions
|
|
@ -77,3 +77,8 @@ class PastebinTest(BackendTest):
|
|||
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
|
||||
|
||||
def test_can_post(self):
|
||||
assert self.backend.can_post(public=None) > 0
|
||||
assert self.backend.can_post(public=True) > 0
|
||||
assert self.backend.can_post(public=False) > 0
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue