'Tests that a 400 is returned when using neutron as the backend'

def test_list_vifs_neutron_notimplemented(self):

    self.get_vifs_by_instance_patcher.stop()
    self.flags(use_neutron=True)
    self._set_controller()
    req = fakes.HTTPRequest.blank('', version=self.wsgi_api_version)
    self.assertRaises(webob.exc.HTTPBadRequest, self.controller.index, req, FAKE_UUID)
    self.get_vifs_by_instance_patcher.start()
