浏览代码

Fix test user_password

Yentl Van Tendeloo 7 年之前
父节点
当前提交
07b058d0c4
共有 1 个文件被更改,包括 2 次插入2 次删除
  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