From 74e6f9f11db2fa460f2b6f3a8c7863bd46f90fd0 Mon Sep 17 00:00:00 2001 From: "A.Avenel" Date: Sat, 12 Oct 2013 16:56:25 +0200 Subject: Add unit-test for bug #105. Small code refactoring for better readability --- budget/tests.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'budget/tests.py') diff --git a/budget/tests.py b/budget/tests.py index 9eea518..0f7c2a2 100644 --- a/budget/tests.py +++ b/budget/tests.py @@ -289,6 +289,11 @@ class BudgetTestCase(TestCase): self.assertTrue(models.Project.query.get("demo") is not None) def test_authentication(self): + # try to authenticate without credentials should redirect + # to the authentication page + resp = self.app.post("/authenticate") + self.assertIn("Authentication", resp.data) + # raclette that the login / logout process works self.create_project("raclette") -- cgit v1.1