Skip to content

Commit

Permalink
new test of controller
Browse files Browse the repository at this point in the history
  • Loading branch information
joamag committed Sep 14, 2016
1 parent 7b40b5f commit 89b1312
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/colony_print/test/controllers/node.py
Expand Up @@ -18,8 +18,12 @@ def tearDown(self):
adapter = appier.get_adapter()
adapter.drop_db()

def test_print_default_o(self):
def test_print_default(self):
response = self.app.get("/nodes/name/print")
self.assertEqual(response.code, "403 Forbidden")
self.assertEqual(response.code, 403)

def test_print_default_o(self):
response = self.app.options("/nodes/name/print")
self.assertEqual(response.code, 200)
self.assertEqual(response.headers["Access-Control-Allow-Origin"].startswith("*"), True)
self.assertEqual(response.headers["Access-Control-Allow-Headers"].startswith("*"), True)

0 comments on commit 89b1312

Please sign in to comment.