Test Changed

pull/8/head
NachoCP 9 years ago
parent ab2c1f73e4
commit 81cbe5ea54

@ -64,15 +64,16 @@ class BlueprintsTest(TestCase):
assert "@context" in resp.json assert "@context" in resp.json
def test_headers(self): def test_headers(self):
for i, j in product(["/api/plugins/?nothing=", "/api/?i=test&"]): i = ["/api/plugins/?nothing="]
resp = self.client.get("%s" % (i)) j = ["/api/?i=test&"]:
assert "@context" in resp.json resp = self.client.get("%s" % (i))
resp = self.client.get("%s&%s=0" % (i, j)) assert "@context" in resp.json
assert "@context" in resp.json resp = self.client.get("%s&%s=0" % (i, j))
resp = self.client.get("%s&%s=1" % (i, j)) assert "@context" in resp.json
assert "@context" not in resp.json resp = self.client.get("%s&%s=1" % (i, j))
resp = self.client.get("%s&%s=true" % (i, j)) assert "@context" not in resp.json
assert "@context" not in resp.json resp = self.client.get("%s&%s=true" % (i, j))
assert "@context" not in resp.json
def test_detail(self): def test_detail(self):
""" Show only one plugin""" """ Show only one plugin"""

Loading…
Cancel
Save