)]}'
{"neutron/tests/unit/agent/linux/test_dhcp.py":[{"author":{"_account_id":8124,"name":"cbrandily","email":"zzelle@gmail.com","username":"cbrandily"},"change_message_id":"1e6636b384b6f4fac2815d356acac62e20f9ff77","unresolved":false,"context_lines":[{"line_number":1652,"context_line":""},{"line_number":1653,"context_line":"    def test__output_hosts_file_log_only_twice(self):"},{"line_number":1654,"context_line":"        dm \u003d self._get_dnsmasq(FakeDualStackNetworkSingleDHCP())"},{"line_number":1655,"context_line":"        with mock.patch.object(dhcp.LOG, \u0027debug\u0027) as process:"},{"line_number":1656,"context_line":"            process.return_value \u003d (\u0027fake_message\u0027, {})"},{"line_number":1657,"context_line":"            dm._output_hosts_file()"},{"line_number":1658,"context_line":"        # The method logs twice, at the start of and the end. There should be"}],"source_content_type":"text/x-python","patch_set":1,"id":"3a50d1a3_e7d47e48","line":1655,"updated":"2015-07-24 18:32:47.000000000","message":"both implementations are not equivalent, the old one checks there is 2 log, the new one checks there is 2 DEBUG log. you can do instead:\n\n with mock.patch.object(dhcp, \u0027LOG\u0027) as logger:\n    dm._out...\n self.assertEqual(2, len(logger.method_calls))","commit_id":"21c4d3c620cec662ef7966ee66f55954507317bb"},{"author":{"_account_id":6854,"name":"YAMAMOTO Takashi","email":"yamamoto@midokura.com","username":"yamamoto"},"change_message_id":"3f6b75e945fae6dcfa48501b224e39e4ae99d57e","unresolved":false,"context_lines":[{"line_number":1658,"context_line":"        # The method logs twice, at the start of and the end. There should be"},{"line_number":1659,"context_line":"        # no other logs, no matter how many hosts there are to dump in the"},{"line_number":1660,"context_line":"        # file."},{"line_number":1661,"context_line":"        self.assertEqual(2, process.call_count)"},{"line_number":1662,"context_line":""},{"line_number":1663,"context_line":"    def test_only_populates_dhcp_enabled_subnets(self):"},{"line_number":1664,"context_line":"        exp_host_name \u003d \u0027/dhcp/eeeeeeee-eeee-eeee-eeee-eeeeeeeeeeee/host\u0027"}],"source_content_type":"text/x-python","patch_set":1,"id":"3a50d1a3_b8374daf","line":1661,"range":{"start_line":1661,"start_character":28,"end_line":1661,"end_character":35},"updated":"2015-07-27 08:55:18.000000000","message":"can you give the \"process\" variable a new name?","commit_id":"21c4d3c620cec662ef7966ee66f55954507317bb"}]}
