def _assert_got_response_code(self, code, log):
        self.assertEqual(str(log).count('Crawled (%d)' % code), 1)
dataset/ETHPy150Open scrapy/scrapy/tests/test_proxy_connect.py/ProxyConnectTestCase._assert_got_response_code/original