def test_nexus_host_not_configured(self):

        # Clear out call_count changes during initialization activity
        self.mock_ncclient.reset_mock()
        with self._create_resources(host_id='fake_host') as result:
            self.assertEqual(result.status_int, wexc.HTTPOk.code)
            self.assertRaises(c_exc.NexusPortBindingNotFound,
                              nexus_db_v2.get_nexusport_switch_bindings,
                              NEXUS_IP_ADDR)
            assert not self.mock_ncclient.connect.called
Test handling of a host not found in our configuration.
dataset/ETHPy150Open openstack/networking-cisco/networking_cisco/tests/unit/ml2/drivers/cisco/nexus/test_cisco_mech.py/TestCiscoPortsV2.test_nexus_host_not_configured