def test_add_hosting_vnf(self, mock_monitor_run): test_device_dict = MOCK_VNF_DEVICE test_boot_wait = 30 test_vnfmonitor = VNFMonitor(test_boot_wait) test_vnfmonitor.add_hosting_vnf(test_device_dict) test_device_id = test_vnfmonitor._hosting_vnfs.keys()[0] self.assertEqual(test_device_id, MOCK_DEVICE_ID)