From 81cbe5ea5492cf14e57712e6c7f7301ebc21cbf7 Mon Sep 17 00:00:00 2001 From: NachoCP Date: Tue, 2 Feb 2016 11:09:56 +0100 Subject: [PATCH] Test Changed --- tests/blueprints_test/__init__.py | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/tests/blueprints_test/__init__.py b/tests/blueprints_test/__init__.py index cbde5c6..49f81e8 100644 --- a/tests/blueprints_test/__init__.py +++ b/tests/blueprints_test/__init__.py @@ -64,15 +64,16 @@ class BlueprintsTest(TestCase): assert "@context" in resp.json def test_headers(self): - for i, j in product(["/api/plugins/?nothing=", "/api/?i=test&"]): - resp = self.client.get("%s" % (i)) - assert "@context" in resp.json - resp = self.client.get("%s&%s=0" % (i, j)) - assert "@context" in resp.json - resp = self.client.get("%s&%s=1" % (i, j)) - assert "@context" not in resp.json - resp = self.client.get("%s&%s=true" % (i, j)) - assert "@context" not in resp.json + i = ["/api/plugins/?nothing="] + j = ["/api/?i=test&"]: + resp = self.client.get("%s" % (i)) + assert "@context" in resp.json + resp = self.client.get("%s&%s=0" % (i, j)) + assert "@context" in resp.json + resp = self.client.get("%s&%s=1" % (i, j)) + 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): """ Show only one plugin"""