def test_get_extension_json(self):
    app = compute.APIRouter()
    request = webob.Request.blank('/fake/extensions/FOXNSOX')
    response = request.get_response(app)
    self.assertEqual(200, response.status_int)
    data = jsonutils.loads(response.body)
    self.assertEqual(data['extension'], {'namespace': 'http://www.fox.in.socks/api/ext/pie/v1.0', 'name': 'Fox In Socks', 'updated': '2011-01-22T13:25:27-06:00', 'description': 'The Fox In Socks Extension', 'alias': 'FOXNSOX', 'links': []})
def test_get_extension_json(self):
    app = compute.APIRouter()
    request = webob.Request.blank('/fake/extensions/FOXNSOX')
    response = request.get_response(app)
    self.assertEqual(200, response.status_int)
    data = jsonutils.loads(response.body)
    self.assertEqual(data['extension'], {'namespace': 'http://www.fox.in.socks/api/ext/pie/v1.0', 'name': 'Fox In Socks', 'updated': '2011-01-22T13:25:27-06:00', 'description': 'The Fox In Socks Extension', 'alias': 'FOXNSOX', 'links': []})