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=42c84ea6d88ecb94c2a7d2e3e94e86522cbd19aa;hpb=f5f2e3f9cecc38647a437af7812323a1da7d3f60 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()