def test_get_resources_with_mgr(self):
    app = fakes.wsgi_app()
    request = webob.Request.blank('/v2/fake/flavors/1?chewing=newblue')
    request.environ['api.version'] = '2'
    response = request.get_response(app)
    self.assertEqual(200, response.status_int)
    response_data = jsonutils.loads(response.body)
    self.assertEqual('newblue', response_data['flavor']['googoose'])
    self.assertEqual('Pig Bands!', response_data['big_bands'])
def test_get_resources_with_mgr(self):
    app = fakes.wsgi_app()
    request = webob.Request.blank('/v2/fake/flavors/1?chewing=newblue')
    request.environ['api.version'] = '2'
    response = request.get_response(app)
    self.assertEqual(200, response.status_int)
    response_data = jsonutils.loads(response.body)
    self.assertEqual('newblue', response_data['flavor']['googoose'])
    self.assertEqual('Pig Bands!', response_data['big_bands'])