Commit 6c46db48 by Bach Dániel

dashboard: fix test_permitted_password_change

parent b36dc101
...@@ -134,7 +134,7 @@ class VmDetailTest(LoginMixin, TestCase): ...@@ -134,7 +134,7 @@ class VmDetailTest(LoginMixin, TestCase):
password = inst.pw password = inst.pw
response = c.post("/dashboard/vm/1/", {'change_password': True}) response = c.post("/dashboard/vm/1/", {'change_password': True})
self.assertEqual(response.status_code, 403) self.assertEqual(response.status_code, 403)
self.assertEqual(password, inst.pw) self.assertEqual(password, Instance.objects.get(pk=1).pw)
def test_unpermitted_network_add(self): def test_unpermitted_network_add(self):
c = Client() c = Client()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment