Browse Source

Fix test user_password

Yentl Van Tendeloo 7 years ago
parent
commit
07b058d0c4
1 changed files with 2 additions and 2 deletions
  1. 2 2
      unit/test_all.py

+ 2 - 2
unit/test_all.py

@@ -820,7 +820,7 @@ class TestModelverse(unittest.TestCase):
 
         # Check on folder "model"
         try:
-            user_password("users", "users2")
+            self.do_as_user("admin", user_password, ["users", "users2"])
             self.fail()
         except UnknownUser:
             pass
@@ -2557,7 +2557,7 @@ class TestModelverse(unittest.TestCase):
 
         # Check on folder "model"
         try:
-            undefine_attribute("users", "a", "b", True)
+            undefine_attribute("users", "a", "b")
             self.fail()
         except NotAModel:
             pass