)]}'
{"swift/obj/replicator.py":[{"author":{"_account_id":1179,"name":"Clay Gerrard","email":"clay.gerrard@gmail.com","username":"clay-gerrard"},"change_message_id":"ed9743f94952333693d8aa8b0ae63a4a7ac0a75b","unresolved":false,"context_lines":[{"line_number":59,"context_line":"        :param logger: logging object"},{"line_number":60,"context_line":"        \"\"\""},{"line_number":61,"context_line":"        self.conf \u003d conf"},{"line_number":62,"context_line":"        self.logger \u003d logger or get_logger(conf, log_route\u003d\u0027object-replicator\u0027)"},{"line_number":63,"context_line":"        self.devices_dir \u003d conf.get(\u0027devices\u0027, \u0027/srv/node\u0027)"},{"line_number":64,"context_line":"        self.mount_check \u003d config_true_value(conf.get(\u0027mount_check\u0027, \u0027true\u0027))"},{"line_number":65,"context_line":"        self.vm_test_mode \u003d config_true_value(conf.get(\u0027vm_test_mode\u0027, \u0027no\u0027))"}],"source_content_type":"text/x-python","patch_set":3,"id":"fa1b9901_8085c15a","line":62,"updated":"2015-08-21 03:31:45.000000000","message":"+1 plumbing in the optional override of the logger instance is a common pattern in all the daemons and apps that\u0027s taken advantage of in tests.\n\nSometimes daemons that use an internal client will allow for the same thing - it\u0027s cleaner than letting them create the thing and then over-writing the attribute in the test after __init__.","commit_id":"ab163702de733be39ba5e7024c7a8dd4c86bc29b"}],"test/unit/obj/test_replicator.py":[{"author":{"_account_id":1179,"name":"Clay Gerrard","email":"clay.gerrard@gmail.com","username":"clay-gerrard"},"change_message_id":"ed9743f94952333693d8aa8b0ae63a4a7ac0a75b","unresolved":false,"context_lines":[{"line_number":199,"context_line":"            conf, logger\u003dself.logger)"},{"line_number":200,"context_line":"        self.assertEqual(replicator.handoff_delete, 2)"},{"line_number":201,"context_line":"        expected.append(log_message)"},{"line_number":202,"context_line":"        self.assertEqual(self.logger.get_lines_for_level(\u0027warning\u0027), expected)"},{"line_number":203,"context_line":""},{"line_number":204,"context_line":"    def _write_disk_data(self, disk_name):"},{"line_number":205,"context_line":"        os.mkdir(os.path.join(self.devices, disk_name))"}],"source_content_type":"text/x-python","patch_set":3,"id":"fa1b9901_a0a1e5f9","line":202,"updated":"2015-08-21 03:31:45.000000000","message":"only thing that\u0027s missing is a negative test that shows when the settings get reset no warnings are emited","commit_id":"ab163702de733be39ba5e7024c7a8dd4c86bc29b"}]}
