X-Git-Url: https://osm.etsi.org/gitweb/?p=osm%2FNBI.git;a=blobdiff_plain;f=osm_nbi%2Ftests%2Ftest_instance_topics.py;h=14abde734a5c3110003961a2d2686c50d8226bae;hp=6d82b0fe6362807348872b84eeb102b70841a3f5;hb=20e74d260242c91c9836efba6a9436a159c4decc;hpb=d4a705a7a5f279a7808d09b6c080ebb29d9836fd;ds=sidebyside diff --git a/osm_nbi/tests/test_instance_topics.py b/osm_nbi/tests/test_instance_topics.py index 6d82b0f..14abde7 100644 --- a/osm_nbi/tests/test_instance_topics.py +++ b/osm_nbi/tests/test_instance_topics.py @@ -276,8 +276,9 @@ class TestNsrTopic(unittest.TestCase): self.assertEqual(db_s1_args[0][0], self.nsr_topic.topic, "Wrong DB topic") self.assertEqual(db_s1_args[0][1]["_id"], self.nsr_id, "Wrong DB ID") self.assertIsNone(db_s1_args[1]["update_dict"], "Wrong DB update dictionary") - self.assertIn("_admin.projects_read." + p_other, db_s1_args[1]["pull"], "Wrong DB pull dictionary") - self.assertIn("_admin.projects_write." + p_other, db_s1_args[1]["pull"], "Wrong DB pull dictionary") + self.assertEqual(db_s1_args[1]["pull_list"], + {"_admin.projects_read": [p_other], "_admin.projects_write": [p_other]}, + "Wrong DB pull_list dictionary") self.fs.file_delete.assert_not_called() with self.subTest(i=4, t='Delete with force and admin'): self.db.del_one.reset_mock()