From bb63c26cc0fc0e572cf7718b77e8b27cd5aad941 Mon Sep 17 00:00:00 2001
From: Andre Anjos <andre.dos.anjos@gmail.com>
Date: Fri, 22 Apr 2016 09:39:19 +0200
Subject: [PATCH] [backend] Fix cancel-experiment tests

---
 beat/web/backend/tests.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/beat/web/backend/tests.py b/beat/web/backend/tests.py
index f0a63893e..9bef9cf50 100644
--- a/beat/web/backend/tests.py
+++ b/beat/web/backend/tests.py
@@ -345,7 +345,7 @@ class CancelAllExperimentsAPI(BackendAPIBase):
 
     def test_no_access_for_anonymous_user(self):
         response = self.client.get(self.url)
-        self.checkResponse(response, 403)
+        self.checkResponse(response, 302) #redirects to login page
 
 
     def test_no_access_for_non_superuser(self):
-- 
GitLab