def _assert_expected_mappings_get_added(self, expected_host_map_data):
<EOL>self.assertRaises(exceptions.NexusHostMappingNotFound,<EOL>nexus_db_v2.get_all_host_mappings)<EOL>self.cisco_mech_driver._initialize_host_port_mappings()<EOL>mappings = nexus_db_v2.get_all_host_mappings()<EOL>for hostmap in mappings:<EOL><INDENT>self.assertEqual(<EOL>expected_host_map_data[hostmap.switch_ip][hostmap.if_id],<EOL>hostmap.host_id)<EOL>self.assertEqual(<NUM_LIT:0>, hostmap.ch_grp)<EOL>self.assertTrue(hostmap.is_static)<EOL>del expected_host_map_data[hostmap.switch_ip][hostmap.if_id]<EOL><DEDENT>for ip, mappings in expected_host_map_data.items():<EOL><INDENT>self.assertEqual({}, mappings)<EOL><DEDENT>
Assert all expected mappings now exist and there aren't any
        unexpected mappings