with self.subTest(i=1):
cvws["_admin"] = {"projects_read": [test_pid, ro_pid, rw_pid], "projects_write": [test_pid, rw_pid]}
self.db.get_one.return_value = cvws
with self.subTest(i=1):
cvws["_admin"] = {"projects_read": [test_pid, ro_pid, rw_pid], "projects_write": [test_pid, rw_pid]}
self.db.get_one.return_value = cvws
"Wrong read-only projects update")
self.assertEqual(self.db.set_one.call_args[1]["update_dict"]["_admin.projects_write"], [rw_pid],
"Wrong read/write projects update")
"Wrong read-only projects update")
self.assertEqual(self.db.set_one.call_args[1]["update_dict"]["_admin.projects_write"], [rw_pid],
"Wrong read/write projects update")
now = time()
cvws["_admin"] = {"projects_read": [test_pid], "projects_write": [test_pid], "operations": []}
self.db.get_one.return_value = cvws
now = time()
cvws["_admin"] = {"projects_read": [test_pid], "projects_write": [test_pid], "operations": []}
self.db.get_one.return_value = cvws