)]}'
{"nova/tests/integrated/test_api_samples.py":[{"author":{"_account_id":67,"name":"Vish Ishaya","email":"vishvananda@gmail.com","username":"vishvananda"},"change_message_id":"c9e6ffd844a97ef5dc49eed4445c8096fa0c69ce","unresolved":false,"context_lines":[{"line_number":1159,"context_line":"        self.stubs.Set(api.API, \"get_instance_type\","},{"line_number":1160,"context_line":"                       test_simple_tenant_usage.fake_instance_type_get)"},{"line_number":1161,"context_line":"        self.stubs.Set(api.API, \"get_active_by_window\","},{"line_number":1162,"context_line":"            test_simple_tenant_usage.fake_instance_get_active_by_window)"},{"line_number":1163,"context_line":""},{"line_number":1164,"context_line":"    def test_get_tenants_usage(self):"},{"line_number":1165,"context_line":"        \"\"\"Get api sample to get all tenants usage request\"\"\""}],"source_content_type":"text/x-python","patch_set":2,"id":"AAAALH%2F%2FNgk%3D","line":1162,"updated":"2012-10-04 17:00:35.000000000","message":"it would be nice if we could figure out a way to make this work without having to stub stuff out. It seems like the get_instance_type stub isn\u0027t necessary for sure, and the fake_get_active_by_window is only returning one instance, so it seems like you could actually just post an instance and use timeutils.set_time_override to change the apparent time.\n\nWant to give it a try?","commit_id":"dbfd30b4174ec7f480184fc38749d205bd72cc66"},{"author":{"_account_id":5174,"name":"Mauro Sergio Martins Rodrigues","email":"maurosr@linux.vnet.ibm.com","username":"maurosr"},"change_message_id":"dc67eceb7164b67225dcccc88720d13f81fb7bf2","unresolved":false,"context_lines":[{"line_number":1159,"context_line":"        self.stubs.Set(api.API, \"get_instance_type\","},{"line_number":1160,"context_line":"                       test_simple_tenant_usage.fake_instance_type_get)"},{"line_number":1161,"context_line":"        self.stubs.Set(api.API, \"get_active_by_window\","},{"line_number":1162,"context_line":"            test_simple_tenant_usage.fake_instance_get_active_by_window)"},{"line_number":1163,"context_line":""},{"line_number":1164,"context_line":"    def test_get_tenants_usage(self):"},{"line_number":1165,"context_line":"        \"\"\"Get api sample to get all tenants usage request\"\"\""}],"source_content_type":"text/x-python","patch_set":2,"id":"AAAALH%2F%2FM64%3D","line":1162,"in_reply_to":"AAAALH%2F%2FNgk%3D","updated":"2012-10-05 11:58:38.000000000","message":"sure!!","commit_id":"dbfd30b4174ec7f480184fc38749d205bd72cc66"},{"author":{"_account_id":67,"name":"Vish Ishaya","email":"vishvananda@gmail.com","username":"vishvananda"},"change_message_id":"5ff207067bd2bf683fef8f4642b897dbec4df8d3","unresolved":false,"context_lines":[{"line_number":1242,"context_line":"            \u0027start\u0027: str(timeutils.utcnow() - datetime.timedelta(hours\u003d1)),"},{"line_number":1243,"context_line":"            \u0027end\u0027: str(timeutils.utcnow())"},{"line_number":1244,"context_line":"        }"},{"line_number":1245,"context_line":""},{"line_number":1246,"context_line":"    def test_get_tenants_usage(self):"},{"line_number":1247,"context_line":"        \"\"\"Get api sample to get all tenants usage request\"\"\""},{"line_number":1248,"context_line":"        response \u003d self._do_get(\u0027os-simple-tenant-usage?%s\u0027 % ("}],"source_content_type":"text/x-python","patch_set":8,"id":"AAAALH%2F%2FJiI%3D","line":1245,"updated":"2012-10-11 04:42:20.000000000","message":"seems like you need a tearDown() with timeutils.clear_time_override()","commit_id":"69c6699fd90108eb2794da893de826b524ec9442"}]}
