|
@@ -2715,6 +2715,13 @@ class TestModelverse(unittest.TestCase):
|
|
|
assert self.do_as_user("other_user", read_permissions, ["users/user/test/a"]) == ""
|
|
|
assert self.do_as_user("admin", read_permissions, ["users/user/test/a"]) == "RW"
|
|
|
|
|
|
+ # Test for non-existing location
|
|
|
+ try:
|
|
|
+ read_permissions("adfadsf")
|
|
|
+ self.fail()
|
|
|
+ except UnknownLocation:
|
|
|
+ pass
|
|
|
+
|
|
|
def test_op_read_permissions_folder(self):
|
|
|
folder_create("users/user/test/a")
|
|
|
|
|
@@ -2740,6 +2747,13 @@ class TestModelverse(unittest.TestCase):
|
|
|
assert self.do_as_user("other_user", read_permissions, ["users/user/test/a"]) == ""
|
|
|
assert self.do_as_user("admin", read_permissions, ["users/user/test/a"]) == "RW"
|
|
|
|
|
|
+ # Test for non-existing location
|
|
|
+ try:
|
|
|
+ read_permissions("adfadsf")
|
|
|
+ self.fail()
|
|
|
+ except UnknownLocation:
|
|
|
+ pass
|
|
|
+
|
|
|
"""
|
|
|
def test_op_model_render(self):
|
|
|
def test_op_transformation_between(self):
|