56
55
body = {'os-getConsoleOutput': {}}
57
56
req = webob.Request.blank('/v2/fake/servers/1/action')
60
59
req.headers["content-type"] = "application/json"
62
61
res = req.get_response(fakes.wsgi_app())
64
63
self.assertEqual(res.status_int, 200)
65
64
self.assertEqual(output, {'output': '0\n1\n2\n3\n4'})