'Test Glance redirects /v# to /v#/ with correct Location header'

def test_redirect_incomplete_url(self):

    req = webob.Request.blank('/v1.1')
    res = req.get_response(self.api)
    self.assertEqual(webob.exc.HTTPFound.code, res.status_int)
    self.assertEqual('http://localhost/v1/', res.location)
