)]}'
{"test/unit/common/test_wsgi.py":[{"author":{"_account_id":1179,"name":"Clay Gerrard","email":"clay.gerrard@gmail.com","username":"clay-gerrard"},"change_message_id":"7b94ec2048bc83114b7d83871f4bb00a8ccb44ac","unresolved":false,"context_lines":[{"line_number":1012,"context_line":"            \u0027swift.common.middleware.dlo\u0027,"},{"line_number":1013,"context_line":"            \u0027swift.proxy.server\u0027])"},{"line_number":1014,"context_line":""},{"line_number":1015,"context_line":"    @patch_policies"},{"line_number":1016,"context_line":"    @with_tempdir"},{"line_number":1017,"context_line":"    def test_loadapp_proxy(self, tempdir):"},{"line_number":1018,"context_line":"        conf_path \u003d os.path.join(tempdir, \u0027proxy-server.conf\u0027)"}],"source_content_type":"text/x-python","patch_set":1,"id":"1ae5cdf2_b7150f4e","side":"PARENT","line":1015,"updated":"2014-06-24 06:15:52.000000000","message":"so the global @patch_policies is super easy, but it really works better with fake rings.  Since I knew this test was writing out real rings I think I was trying to be extra careful to localize the damage to this one test method.","commit_id":"1feaf6e2895d0646ea54452793379dc05f6dbab8"},{"author":{"_account_id":1179,"name":"Clay Gerrard","email":"clay.gerrard@gmail.com","username":"clay-gerrard"},"change_message_id":"7b94ec2048bc83114b7d83871f4bb00a8ccb44ac","unresolved":false,"context_lines":[{"line_number":47,"context_line":"from paste.deploy import loadwsgi"},{"line_number":48,"context_line":""},{"line_number":49,"context_line":""},{"line_number":50,"context_line":"@patch_policies"},{"line_number":51,"context_line":"def _fake_rings(tmpdir):"},{"line_number":52,"context_line":"    write_fake_ring(os.path.join(tmpdir, \u0027account.ring.gz\u0027))"},{"line_number":53,"context_line":"    write_fake_ring(os.path.join(tmpdir, \u0027container.ring.gz\u0027))"}],"source_content_type":"text/x-python","patch_set":1,"id":"1ae5cdf2_977bb3bd","line":50,"updated":"2014-06-24 06:15:52.000000000","message":"this patch is not needed, and makes the function a lot less generic than it might be...","commit_id":"890eb661cb7640d442a4d1ebbbbe8eea41fcd7fe"},{"author":{"_account_id":1179,"name":"Clay Gerrard","email":"clay.gerrard@gmail.com","username":"clay-gerrard"},"change_message_id":"7b94ec2048bc83114b7d83871f4bb00a8ccb44ac","unresolved":false,"context_lines":[{"line_number":57,"context_line":"        write_fake_ring(obj_ring_path)"},{"line_number":58,"context_line":""},{"line_number":59,"context_line":""},{"line_number":60,"context_line":"@patch_policies"},{"line_number":61,"context_line":"class TestWSGI(unittest.TestCase):"},{"line_number":62,"context_line":"    \"\"\"Tests for swift.common.wsgi\"\"\""},{"line_number":63,"context_line":""}],"source_content_type":"text/x-python","patch_set":1,"id":"1ae5cdf2_92174145","line":60,"updated":"2014-06-24 06:15:52.000000000","message":"so these tests each write out rings in different tempdirs for each test - but this policy collection is only created once for the whole class and re-used between tests :\\","commit_id":"890eb661cb7640d442a4d1ebbbbe8eea41fcd7fe"}]}
