Exemple #1
0
 def test__get_permission_user__no_user(self):
     with pytest.raises(Exception) as e:
         PermissionPlugin._get_permission_user({})
     assert e.value.args[0] == "No permission for user"
Exemple #2
0
 def test__get_permission_user(self, permission_user):
     result = PermissionPlugin._get_permission_user(
         {'_permission_user': permission_user})
     assert result is permission_user