)]}'
{"marconi/common/storage/select.py":[{"author":{"_account_id":6159,"name":"Flavio Percoco Premoli","display_name":"flaper87","email":"flavio.percoco@flyrlabs.com","username":"flaper87"},"change_message_id":"de15e85075ecf4813604768edea8948d8cf7c34c","unresolved":false,"context_lines":[{"line_number":23,"context_line":"    \"\"\"Perform a weighted select given a list of shard entries."},{"line_number":24,"context_line":""},{"line_number":25,"context_line":"    :param objs: a list of objects containing at least the field `key`"},{"line_number":26,"context_line":"    :type shards: [dict]"},{"line_number":27,"context_line":"    :param key: the field in each obj that corresponds to weight"},{"line_number":28,"context_line":"    :type key: six.text_type"},{"line_number":29,"context_line":"    :param generator: a number generator taking two ints"}],"source_content_type":"text/x-python","patch_set":16,"id":"AAAATn%2F%2FFn4%3D","line":26,"updated":"2013-11-15 15:12:55.000000000","message":"objs*","commit_id":"e054f46313db37837c2e1487f349a23001d7e7b6"},{"author":{"_account_id":6944,"name":"Allele Dev","email":"cpp.cabrera@gmail.com","username":"cpp-cabrera"},"change_message_id":"bb9e5e3f79a89abf0ef9c0713f2157914056a23f","unresolved":false,"context_lines":[{"line_number":23,"context_line":"    \"\"\"Perform a weighted select given a list of shard entries."},{"line_number":24,"context_line":""},{"line_number":25,"context_line":"    :param objs: a list of objects containing at least the field `key`"},{"line_number":26,"context_line":"    :type shards: [dict]"},{"line_number":27,"context_line":"    :param key: the field in each obj that corresponds to weight"},{"line_number":28,"context_line":"    :type key: six.text_type"},{"line_number":29,"context_line":"    :param generator: a number generator taking two ints"}],"source_content_type":"text/x-python","patch_set":16,"id":"AAAATn%2F%2FAkg%3D","line":26,"in_reply_to":"AAAATn%2F%2FFn4%3D","updated":"2013-11-15 19:41:25.000000000","message":"Done","commit_id":"e054f46313db37837c2e1487f349a23001d7e7b6"},{"author":{"_account_id":6943,"name":"Zhihao Yuan","email":"zhihao.yuan@rackspace.com","username":"zyuan"},"change_message_id":"a1257050a2247a2c2c6b3b502526bc4d9199334d","unresolved":false,"context_lines":[{"line_number":40,"context_line":"        if o[key] \u003c\u003d 0:"},{"line_number":41,"context_line":"            continue"},{"line_number":42,"context_line":"        acc +\u003d o[key]"},{"line_number":43,"context_line":"        lookup.append((o, acc))"},{"line_number":44,"context_line":""},{"line_number":45,"context_line":"    # no objects were found"},{"line_number":46,"context_line":"    if not lookup:"}],"source_content_type":"text/x-python","patch_set":16,"id":"AAAATn%2F%2FfSI%3D","line":43,"updated":"2013-11-04 19:34:01.000000000","message":"I have a strong feeling that this can be replaced by a list comprehension.","commit_id":"e054f46313db37837c2e1487f349a23001d7e7b6"},{"author":{"_account_id":6944,"name":"Allele Dev","email":"cpp.cabrera@gmail.com","username":"cpp-cabrera"},"change_message_id":"bb9e5e3f79a89abf0ef9c0713f2157914056a23f","unresolved":false,"context_lines":[{"line_number":40,"context_line":"        if o[key] \u003c\u003d 0:"},{"line_number":41,"context_line":"            continue"},{"line_number":42,"context_line":"        acc +\u003d o[key]"},{"line_number":43,"context_line":"        lookup.append((o, acc))"},{"line_number":44,"context_line":""},{"line_number":45,"context_line":"    # no objects were found"},{"line_number":46,"context_line":"    if not lookup:"}],"source_content_type":"text/x-python","patch_set":16,"id":"AAAATn%2F%2FAkk%3D","line":43,"in_reply_to":"AAAATn%2F%2FfSI%3D","updated":"2013-11-15 19:41:25.000000000","message":"It cannot be done, since the state of the next iteration depends on the state of the last N iterations, e.g., that accumulator.","commit_id":"e054f46313db37837c2e1487f349a23001d7e7b6"}],"marconi/queues/storage/base.py":[{"author":{"_account_id":6159,"name":"Flavio Percoco Premoli","display_name":"flaper87","email":"flavio.percoco@flyrlabs.com","username":"flaper87"},"change_message_id":"de15e85075ecf4813604768edea8948d8cf7c34c","unresolved":false,"context_lines":[{"line_number":121,"context_line":""},{"line_number":122,"context_line":"    @abc.abstractmethod"},{"line_number":123,"context_line":"    def list(self, project\u003dNone, marker\u003dNone, limit\u003d10,"},{"line_number":124,"context_line":"             detailed\u003dFalse, include_claimed\u003dTrue):"},{"line_number":125,"context_line":"        \"\"\"Base method for listing queues."},{"line_number":126,"context_line":""},{"line_number":127,"context_line":"        :param project: Project id"}],"source_content_type":"text/x-python","patch_set":16,"id":"AAAATn%2F%2FBw0%3D","side":"PARENT","line":124,"updated":"2013-11-15 15:12:55.000000000","message":"T_T","commit_id":"8338bdc992ac275c02ad50e9b34f60e6a5246cad"},{"author":{"_account_id":6944,"name":"Allele Dev","email":"cpp.cabrera@gmail.com","username":"cpp-cabrera"},"change_message_id":"bb9e5e3f79a89abf0ef9c0713f2157914056a23f","unresolved":false,"context_lines":[{"line_number":121,"context_line":""},{"line_number":122,"context_line":"    @abc.abstractmethod"},{"line_number":123,"context_line":"    def list(self, project\u003dNone, marker\u003dNone, limit\u003d10,"},{"line_number":124,"context_line":"             detailed\u003dFalse, include_claimed\u003dTrue):"},{"line_number":125,"context_line":"        \"\"\"Base method for listing queues."},{"line_number":126,"context_line":""},{"line_number":127,"context_line":"        :param project: Project id"}],"source_content_type":"text/x-python","patch_set":16,"id":"AAAATn%2F%2FAkU%3D","side":"PARENT","line":124,"in_reply_to":"AAAATn%2F%2FBw0%3D","updated":"2013-11-15 19:41:25.000000000","message":"It\u0027s the little things. :x","commit_id":"8338bdc992ac275c02ad50e9b34f60e6a5246cad"}],"marconi/queues/storage/mongodb/driver.py":[{"author":{"_account_id":6943,"name":"Zhihao Yuan","email":"zhihao.yuan@rackspace.com","username":"zyuan"},"change_message_id":"a1257050a2247a2c2c6b3b502526bc4d9199334d","unresolved":false,"context_lines":[{"line_number":50,"context_line":"        # catalogue to avoid DuplicateOptErrors."},{"line_number":51,"context_line":"        if \u0027dynamic\u0027 in conf:"},{"line_number":52,"context_line":"            names \u003d conf[options.MONGODB_GROUP].keys()"},{"line_number":53,"context_line":"            opts \u003d filter(lambda x: x.name not in names, opts)"},{"line_number":54,"context_line":""},{"line_number":55,"context_line":"        self.conf.register_opts(opts,"},{"line_number":56,"context_line":"                                group\u003doptions.MONGODB_GROUP)"}],"source_content_type":"text/x-python","patch_set":16,"id":"AAAATn%2F%2FfSE%3D","line":53,"updated":"2013-11-04 19:34:01.000000000","message":"List comprehension is a little bit faster when you need to create a lambda.","commit_id":"e054f46313db37837c2e1487f349a23001d7e7b6"},{"author":{"_account_id":6944,"name":"Allele Dev","email":"cpp.cabrera@gmail.com","username":"cpp-cabrera"},"change_message_id":"bb9e5e3f79a89abf0ef9c0713f2157914056a23f","unresolved":false,"context_lines":[{"line_number":50,"context_line":"        # catalogue to avoid DuplicateOptErrors."},{"line_number":51,"context_line":"        if \u0027dynamic\u0027 in conf:"},{"line_number":52,"context_line":"            names \u003d conf[options.MONGODB_GROUP].keys()"},{"line_number":53,"context_line":"            opts \u003d filter(lambda x: x.name not in names, opts)"},{"line_number":54,"context_line":""},{"line_number":55,"context_line":"        self.conf.register_opts(opts,"},{"line_number":56,"context_line":"                                group\u003doptions.MONGODB_GROUP)"}],"source_content_type":"text/x-python","patch_set":16,"id":"AAAATn%2F%2FAiw%3D","line":53,"in_reply_to":"AAAATn%2F%2FfSE%3D","updated":"2013-11-15 19:41:25.000000000","message":"Very interesting... that statement is true in Python 2, but check out what happens in Python 3.3.2:\n\n    In [2]: %timeit filter(lambda x: x not in [1, 2, 3], names)\n    1000000 loops, best of 3: 285 ns per loop\n    \n    In [3]: %timeit [x for x in names if x not in [1, 2, 3]]\n    1000000 loops, best of 3: 859 ns per loop\n\npypy-2.1\u0027s behavior is similar to Python 2. I\u0027m a little curious about pypy3.\n\nI\u0027ll go ahead and keep it as is, since this isn\u0027t a performance critical portion of the code.","commit_id":"e054f46313db37837c2e1487f349a23001d7e7b6"}],"marconi/queues/storage/sharding.py":[{"author":{"_account_id":6159,"name":"Flavio Percoco Premoli","display_name":"flaper87","email":"flavio.percoco@flyrlabs.com","username":"flaper87"},"change_message_id":"de15e85075ecf4813604768edea8948d8cf7c34c","unresolved":false,"context_lines":[{"line_number":120,"context_line":"        # look it up, the queue is deleted, then this assertion will"},{"line_number":121,"context_line":"        # fail."},{"line_number":122,"context_line":"        target \u003d self._lookup(name, project)"},{"line_number":123,"context_line":"        assert target, \u0027Failed to register queue\u0027"},{"line_number":124,"context_line":""},{"line_number":125,"context_line":"        return target.queue_controller.create(name, project)"},{"line_number":126,"context_line":""}],"source_content_type":"text/x-python","patch_set":16,"id":"AAAATn%2F%2FBvY%3D","line":123,"updated":"2013-11-15 15:12:55.000000000","message":"Do we actually want it to fail? Will this be caught by the API and returned as a NotFound ?","commit_id":"e054f46313db37837c2e1487f349a23001d7e7b6"},{"author":{"_account_id":6944,"name":"Allele Dev","email":"cpp.cabrera@gmail.com","username":"cpp-cabrera"},"change_message_id":"83b01515d9f8dc94d8cb70adbbba3d6d9e5ccacb","unresolved":false,"context_lines":[{"line_number":120,"context_line":"        # look it up, the queue is deleted, then this assertion will"},{"line_number":121,"context_line":"        # fail."},{"line_number":122,"context_line":"        target \u003d self._lookup(name, project)"},{"line_number":123,"context_line":"        assert target, \u0027Failed to register queue\u0027"},{"line_number":124,"context_line":""},{"line_number":125,"context_line":"        return target.queue_controller.create(name, project)"},{"line_number":126,"context_line":""}],"source_content_type":"text/x-python","patch_set":16,"id":"AAAATn%2F%2B6S0%3D","line":123,"in_reply_to":"AAAATn%2F%2FAN0%3D","updated":"2013-11-18 17:12:19.000000000","message":"On second thought, I\u0027m going to replace this with a RuntimeError, to avoid the scenario where assertions get compiled out. We *really* want to raise this exception no matter what, if registration fails.","commit_id":"e054f46313db37837c2e1487f349a23001d7e7b6"},{"author":{"_account_id":6944,"name":"Allele Dev","email":"cpp.cabrera@gmail.com","username":"cpp-cabrera"},"change_message_id":"cbfb33c2f0977b1dad45c4d20598cd9291614688","unresolved":false,"context_lines":[{"line_number":120,"context_line":"        # look it up, the queue is deleted, then this assertion will"},{"line_number":121,"context_line":"        # fail."},{"line_number":122,"context_line":"        target \u003d self._lookup(name, project)"},{"line_number":123,"context_line":"        assert target, \u0027Failed to register queue\u0027"},{"line_number":124,"context_line":""},{"line_number":125,"context_line":"        return target.queue_controller.create(name, project)"},{"line_number":126,"context_line":""}],"source_content_type":"text/x-python","patch_set":16,"id":"AAAATn%2F%2FAN0%3D","line":123,"in_reply_to":"AAAATn%2F%2FAb8%3D","updated":"2013-11-15 21:08:20.000000000","message":"Actually... the transport above catches all Exceptions and translates it to a \"Service Unavailable\" error (503?). I think this assert here is fine, on a second look.","commit_id":"e054f46313db37837c2e1487f349a23001d7e7b6"},{"author":{"_account_id":6944,"name":"Allele Dev","email":"cpp.cabrera@gmail.com","username":"cpp-cabrera"},"change_message_id":"bb9e5e3f79a89abf0ef9c0713f2157914056a23f","unresolved":false,"context_lines":[{"line_number":120,"context_line":"        # look it up, the queue is deleted, then this assertion will"},{"line_number":121,"context_line":"        # fail."},{"line_number":122,"context_line":"        target \u003d self._lookup(name, project)"},{"line_number":123,"context_line":"        assert target, \u0027Failed to register queue\u0027"},{"line_number":124,"context_line":""},{"line_number":125,"context_line":"        return target.queue_controller.create(name, project)"},{"line_number":126,"context_line":""}],"source_content_type":"text/x-python","patch_set":16,"id":"AAAATn%2F%2FAb8%3D","line":123,"in_reply_to":"AAAATn%2F%2FBvY%3D","updated":"2013-11-15 19:41:25.000000000","message":"Good point - this won\u0027t return a 404, when it should. I\u0027ll fix this up.","commit_id":"e054f46313db37837c2e1487f349a23001d7e7b6"},{"author":{"_account_id":6159,"name":"Flavio Percoco Premoli","display_name":"flaper87","email":"flavio.percoco@flyrlabs.com","username":"flaper87"},"change_message_id":"de15e85075ecf4813604768edea8948d8cf7c34c","unresolved":false,"context_lines":[{"line_number":143,"context_line":"    def exists(self, name, project\u003dNone):"},{"line_number":144,"context_line":"        target \u003d self._lookup(name, project)"},{"line_number":145,"context_line":"        if target:"},{"line_number":146,"context_line":"            control \u003d target.queue_controller"},{"line_number":147,"context_line":"            return control.exists(name, project\u003dproject)"},{"line_number":148,"context_line":"        return False"},{"line_number":149,"context_line":""}],"source_content_type":"text/x-python","patch_set":16,"id":"AAAATn%2F%2FBkU%3D","line":146,"updated":"2013-11-15 15:12:55.000000000","message":"Can lines 144-146 be converted in a decorator and pass the controller to the method?\n\nSomething fancy would be to have 1 controller attribute that is set by a decorator *just* for the current context. Pretty much the way threadlocal works but using contextmanager and without modifying the method signature.\n\nThis can be an optimization for later, though.","commit_id":"e054f46313db37837c2e1487f349a23001d7e7b6"},{"author":{"_account_id":6944,"name":"Allele Dev","email":"cpp.cabrera@gmail.com","username":"cpp-cabrera"},"change_message_id":"e549da96b1a4531001790bafa9497eca873b09e7","unresolved":false,"context_lines":[{"line_number":143,"context_line":"    def exists(self, name, project\u003dNone):"},{"line_number":144,"context_line":"        target \u003d self._lookup(name, project)"},{"line_number":145,"context_line":"        if target:"},{"line_number":146,"context_line":"            control \u003d target.queue_controller"},{"line_number":147,"context_line":"            return control.exists(name, project\u003dproject)"},{"line_number":148,"context_line":"        return False"},{"line_number":149,"context_line":""}],"source_content_type":"text/x-python","patch_set":16,"id":"AAAATn%2F%2B5Uk%3D","line":146,"in_reply_to":"AAAATn%2F%2FAMw%3D","updated":"2013-11-18 21:26:33.000000000","message":"I ran with a really nifty approach of using functional.partial in combination with two functions:\n\n    def valued_return(lookup, controller, method, default, *args, **kwargs):\n        # common body\n        return default\n\n    def exceptional_return(lookup, controller, method, exception,\n                                            exception_args, *args, **kwargs):\n        # common body\n        raise exception(common_utils.fields(kwargs, exception_args))\n\n    class MessageController(...):\n        post \u003d functools.partial(\n            exceptional_return,\n            lookup\u003dself._lookup,\n            controller\u003d\u0027queue\u0027,\n            method\u003d\u0027post\u0027,\n            exception\u003derrors.QueueDoesNotExist,\n            exception_args(\u0027queue\u0027, \u0027project\u0027)\n        )\n\n...only to realize that ```self``` wasn\u0027t visible at class-scope. It was fun to run with, an d reduced duplication by a good deal, but it doesn\u0027t work. :P\n\nNext up, I\u0027m going to try a decorator-based approach.","commit_id":"e054f46313db37837c2e1487f349a23001d7e7b6"},{"author":{"_account_id":6944,"name":"Allele Dev","email":"cpp.cabrera@gmail.com","username":"cpp-cabrera"},"change_message_id":"cbfb33c2f0977b1dad45c4d20598cd9291614688","unresolved":false,"context_lines":[{"line_number":143,"context_line":"    def exists(self, name, project\u003dNone):"},{"line_number":144,"context_line":"        target \u003d self._lookup(name, project)"},{"line_number":145,"context_line":"        if target:"},{"line_number":146,"context_line":"            control \u003d target.queue_controller"},{"line_number":147,"context_line":"            return control.exists(name, project\u003dproject)"},{"line_number":148,"context_line":"        return False"},{"line_number":149,"context_line":""}],"source_content_type":"text/x-python","patch_set":16,"id":"AAAATn%2F%2FAMw%3D","line":146,"in_reply_to":"AAAATn%2F%2FAgk%3D","updated":"2013-11-15 21:08:20.000000000","message":"I\u0027m going to think on this some more. I see the idea you have in mind, and I\u0027d love to deduplicate this, but handling the differences in return and the None case is blocking me atm.","commit_id":"e054f46313db37837c2e1487f349a23001d7e7b6"},{"author":{"_account_id":6944,"name":"Allele Dev","email":"cpp.cabrera@gmail.com","username":"cpp-cabrera"},"change_message_id":"bb9e5e3f79a89abf0ef9c0713f2157914056a23f","unresolved":false,"context_lines":[{"line_number":143,"context_line":"    def exists(self, name, project\u003dNone):"},{"line_number":144,"context_line":"        target \u003d self._lookup(name, project)"},{"line_number":145,"context_line":"        if target:"},{"line_number":146,"context_line":"            control \u003d target.queue_controller"},{"line_number":147,"context_line":"            return control.exists(name, project\u003dproject)"},{"line_number":148,"context_line":"        return False"},{"line_number":149,"context_line":""}],"source_content_type":"text/x-python","patch_set":16,"id":"AAAATn%2F%2FAgk%3D","line":146,"in_reply_to":"AAAATn%2F%2FBkU%3D","updated":"2013-11-15 19:41:25.000000000","message":"I see what you mean about lines 144-146 - this is duplicated all over. I\u0027ll clean this up. :)\n\nRegarding the optimization, it sounds pretty fancy, and I think we can safely save that for later!","commit_id":"e054f46313db37837c2e1487f349a23001d7e7b6"},{"author":{"_account_id":6944,"name":"Allele Dev","email":"cpp.cabrera@gmail.com","username":"cpp-cabrera"},"change_message_id":"85de021d580579a65245e64908751cd371d4d0ed","unresolved":false,"context_lines":[{"line_number":315,"context_line":"        conf \u003d cfg.ConfigOpts()"},{"line_number":316,"context_line":"        conf.register_opts(general_opts)"},{"line_number":317,"context_line":"        conf.register_opts(driver_opts, group\u003du\u0027queues:drivers\u0027)"},{"line_number":318,"context_line":"        conf.register_opts(storage_opts, group\u003dstorage_group)"},{"line_number":319,"context_line":"        return utils.load_storage_driver(conf)"},{"line_number":320,"context_line":""},{"line_number":321,"context_line":"    def register(self, queue, project\u003dNone):"}],"source_content_type":"text/x-python","patch_set":18,"id":"AAAATn%2F%2B1Dg%3D","line":318,"updated":"2013-11-19 16:29:37.000000000","message":"Bug report filed for refactoring this: https://bugs.launchpad.net/marconi/+bug/1252791","commit_id":"d4d29ec93f0acb5c639a42cba7b4ea83d04b9017"},{"author":{"_account_id":6159,"name":"Flavio Percoco Premoli","display_name":"flaper87","email":"flavio.percoco@flyrlabs.com","username":"flaper87"},"change_message_id":"005314750aeeb12317181122207dfd781beb678b","unresolved":false,"context_lines":[{"line_number":283,"context_line":"        self._shards_ctrl \u003d control.shards_controller"},{"line_number":284,"context_line":"        self._catalogue_ctrl \u003d control.catalogue_controller"},{"line_number":285,"context_line":""},{"line_number":286,"context_line":"    # FIXME(cpp-cabrera): https://bugs.launchpad.net/marconi/+bug/1252791"},{"line_number":287,"context_line":"    def _init_driver(self, shard_id):"},{"line_number":288,"context_line":"        \"\"\"Given a shard name, returns a storage driver."},{"line_number":289,"context_line":""}],"source_content_type":"text/x-python","patch_set":20,"id":"AAAATn%2F%2B0kQ%3D","line":286,"updated":"2013-11-19 18:08:40.000000000","message":"confirmed","commit_id":"eb66cfe7671479f3d82d137f16e3d825f5b0d3f2"}],"tests/unit/queues/storage/test_shard_catalog.py":[{"author":{"_account_id":6159,"name":"Flavio Percoco Premoli","display_name":"flaper87","email":"flavio.percoco@flyrlabs.com","username":"flaper87"},"change_message_id":"de15e85075ecf4813604768edea8948d8cf7c34c","unresolved":false,"context_lines":[{"line_number":24,"context_line":"from marconi import tests as testing"},{"line_number":25,"context_line":""},{"line_number":26,"context_line":""},{"line_number":27,"context_line":"# TODO(cpp-cabrera): it would be wonderful to refactor this unit test"},{"line_number":28,"context_line":"# so that it could use multiple control storage backends once those"},{"line_number":29,"context_line":"# have shards/catalogue implementations."},{"line_number":30,"context_line":"class TestShardCatalog(testing.TestBase):"}],"source_content_type":"text/x-python","patch_set":16,"id":"AAAATn%2F%2FBjc%3D","line":27,"updated":"2013-11-15 15:12:55.000000000","message":"Mind creating a bug for this? Low hanging fruit!","commit_id":"e054f46313db37837c2e1487f349a23001d7e7b6"},{"author":{"_account_id":6944,"name":"Allele Dev","email":"cpp.cabrera@gmail.com","username":"cpp-cabrera"},"change_message_id":"bb9e5e3f79a89abf0ef9c0713f2157914056a23f","unresolved":false,"context_lines":[{"line_number":24,"context_line":"from marconi import tests as testing"},{"line_number":25,"context_line":""},{"line_number":26,"context_line":""},{"line_number":27,"context_line":"# TODO(cpp-cabrera): it would be wonderful to refactor this unit test"},{"line_number":28,"context_line":"# so that it could use multiple control storage backends once those"},{"line_number":29,"context_line":"# have shards/catalogue implementations."},{"line_number":30,"context_line":"class TestShardCatalog(testing.TestBase):"}],"source_content_type":"text/x-python","patch_set":16,"id":"AAAATn%2F%2FAeQ%3D","line":27,"in_reply_to":"AAAATn%2F%2FBjc%3D","updated":"2013-11-15 19:41:25.000000000","message":"Done: https://bugs.launchpad.net/marconi/+bug/1251740\n\nAlso, agreed!","commit_id":"e054f46313db37837c2e1487f349a23001d7e7b6"}],"tests/unit/queues/transport/wsgi/test_messages.py":[{"author":{"_account_id":6159,"name":"Flavio Percoco Premoli","display_name":"flaper87","email":"flavio.percoco@flyrlabs.com","username":"flaper87"},"change_message_id":"de15e85075ecf4813604768edea8948d8cf7c34c","unresolved":false,"context_lines":[{"line_number":39,"context_line":"                doc \u003d {\u0027weight\u0027: 100, \u0027uri\u0027: uri}"},{"line_number":40,"context_line":"                self.simulate_put(\u0027/v1/shards/\u0027 + str(i),"},{"line_number":41,"context_line":"                                  body\u003djson.dumps(doc))"},{"line_number":42,"context_line":"                self.assertEqual(self.srmock.status, falcon.HTTP_201)"},{"line_number":43,"context_line":""},{"line_number":44,"context_line":"        self.project_id \u003d \u00277e55e1a7e\u0027"},{"line_number":45,"context_line":"        self.queue_path \u003d \u0027/v1/queues/fizbit\u0027"}],"source_content_type":"text/x-python","patch_set":16,"id":"AAAATn%2F%2FBeQ%3D","line":42,"updated":"2013-11-15 15:12:55.000000000","message":"mmh, I\u0027m not sure about the assert in the setUp method.","commit_id":"e054f46313db37837c2e1487f349a23001d7e7b6"},{"author":{"_account_id":6944,"name":"Allele Dev","email":"cpp.cabrera@gmail.com","username":"cpp-cabrera"},"change_message_id":"bb9e5e3f79a89abf0ef9c0713f2157914056a23f","unresolved":false,"context_lines":[{"line_number":39,"context_line":"                doc \u003d {\u0027weight\u0027: 100, \u0027uri\u0027: uri}"},{"line_number":40,"context_line":"                self.simulate_put(\u0027/v1/shards/\u0027 + str(i),"},{"line_number":41,"context_line":"                                  body\u003djson.dumps(doc))"},{"line_number":42,"context_line":"                self.assertEqual(self.srmock.status, falcon.HTTP_201)"},{"line_number":43,"context_line":""},{"line_number":44,"context_line":"        self.project_id \u003d \u00277e55e1a7e\u0027"},{"line_number":45,"context_line":"        self.queue_path \u003d \u0027/v1/queues/fizbit\u0027"}],"source_content_type":"text/x-python","patch_set":16,"id":"AAAATn%2F%2FAdM%3D","line":42,"in_reply_to":"AAAATn%2F%2FBeQ%3D","updated":"2013-11-15 19:41:25.000000000","message":"+1 - I\u0027ll remove that.","commit_id":"e054f46313db37837c2e1487f349a23001d7e7b6"},{"author":{"_account_id":6159,"name":"Flavio Percoco Premoli","display_name":"flaper87","email":"flavio.percoco@flyrlabs.com","username":"flaper87"},"change_message_id":"de15e85075ecf4813604768edea8948d8cf7c34c","unresolved":false,"context_lines":[{"line_number":449,"context_line":"    def setUp(self):"},{"line_number":450,"context_line":"        super(MessagesMongoDBTests, self).setUp()"},{"line_number":451,"context_line":""},{"line_number":452,"context_line":"    def tearDown(self):"},{"line_number":453,"context_line":"        super(MessagesMongoDBTests, self).tearDown()"},{"line_number":454,"context_line":""},{"line_number":455,"context_line":""}],"source_content_type":"text/x-python","patch_set":16,"id":"AAAATn%2F%2FBeU%3D","line":452,"updated":"2013-11-15 15:12:55.000000000","message":"What about just removing them both? They\u0027re not being used at all.","commit_id":"e054f46313db37837c2e1487f349a23001d7e7b6"},{"author":{"_account_id":6944,"name":"Allele Dev","email":"cpp.cabrera@gmail.com","username":"cpp-cabrera"},"change_message_id":"bb9e5e3f79a89abf0ef9c0713f2157914056a23f","unresolved":false,"context_lines":[{"line_number":449,"context_line":"    def setUp(self):"},{"line_number":450,"context_line":"        super(MessagesMongoDBTests, self).setUp()"},{"line_number":451,"context_line":""},{"line_number":452,"context_line":"    def tearDown(self):"},{"line_number":453,"context_line":"        super(MessagesMongoDBTests, self).tearDown()"},{"line_number":454,"context_line":""},{"line_number":455,"context_line":""}],"source_content_type":"text/x-python","patch_set":16,"id":"AAAATn%2F%2FAc4%3D","line":452,"in_reply_to":"AAAATn%2F%2FBeU%3D","updated":"2013-11-15 19:41:25.000000000","message":"I\u0027d prefer to leave these in, since the MessagesBaseTest class and the initial base class do some work in setUp()/tearDown() that\u0027s important, especially for the case of sharded tests.","commit_id":"e054f46313db37837c2e1487f349a23001d7e7b6"}]}
