)]}'
{"neutron/tests/unit/agent/l3/test_item_allocator.py":[{"author":{"_account_id":8124,"name":"cbrandily","email":"zzelle@gmail.com","username":"cbrandily"},"change_message_id":"32c8beb64112047c44a7390584acfa31423d2642","unresolved":false,"context_lines":[{"line_number":63,"context_line":"        self.assertTrue(write.called)"},{"line_number":64,"context_line":""},{"line_number":65,"context_line":"    def test_allocate_repeated_call_with_same_key(self):"},{"line_number":66,"context_line":"        test_pool \u003d set([TestObject(33000), TestObject(33001)])"},{"line_number":67,"context_line":"        a \u003d ia.ItemAllocator(\u0027/file\u0027, TestObject, test_pool)"},{"line_number":68,"context_line":"        with mock.patch.object(ia.ItemAllocator, \u0027_write\u0027) as write:"},{"line_number":69,"context_line":"            test_object \u003d a.allocate(\u0027test\u0027)"}],"source_content_type":"text/x-python","patch_set":2,"id":"da6ed579_c5322df2","line":66,"range":{"start_line":66,"start_character":43,"end_line":66,"end_character":44},"updated":"2016-01-14 00:47:34.000000000","message":"IMO, you should use a larger pool otherwise with a dummy implementation (random allocation) there is 50% chance that the assertion:\n\n self.assertEqual(test_object, test_object1)\n\nis validated","commit_id":"cb4ae2b6ad026a13053da5a246562631f654ddba"},{"author":{"_account_id":8124,"name":"cbrandily","email":"zzelle@gmail.com","username":"cbrandily"},"change_message_id":"32c8beb64112047c44a7390584acfa31423d2642","unresolved":false,"context_lines":[{"line_number":70,"context_line":"            test_object1 \u003d a.allocate(\u0027test\u0027)"},{"line_number":71,"context_line":""},{"line_number":72,"context_line":"        self.assertIn(\u0027test\u0027, a.allocations)"},{"line_number":73,"context_line":"        self.assertEqual(test_object, test_object1)"},{"line_number":74,"context_line":"        self.assertEqual([test_object], [i for i in a.allocations.values()])"},{"line_number":75,"context_line":"        self.assertNotIn(test_object, a.pool)"},{"line_number":76,"context_line":"        self.assertTrue(write.called)"}],"source_content_type":"text/x-python","patch_set":2,"id":"da6ed579_45071d18","line":73,"range":{"start_line":73,"start_character":13,"end_line":73,"end_character":24},"updated":"2016-01-14 00:47:34.000000000","message":"IMO, the only assertion that matters in this test is:\n\n self.assertEqual(test_object, test_object1)","commit_id":"cb4ae2b6ad026a13053da5a246562631f654ddba"}]}
