def test_list_vifs_neutron_notimplemented(self):
        # unset the get_vifs_by_instance stub from setUp
        self.mox.UnsetStubs()
        self.flags(use_neutron=True)
        # reset the controller to use the neutron network API
        self._set_controller()
        self.stub_out('nova.compute.api.API.get', compute_api_get)
        req = fakes.HTTPRequest.blank('', version=self.wsgi_api_version)
        self.assertRaises(webob.exc.HTTPBadRequest,
                          self.controller.index, req, FAKE_UUID)
Tests that a 400 is returned when using neutron as the backend
dataset/ETHPy150Open openstack/nova/nova/tests/unit/api/openstack/compute/test_virtual_interfaces.py/ServerVirtualInterfaceTestV21.test_list_vifs_neutron_notimplemented