

def create_mock_dns_lookup_result(self, hostname, dns_result):
    socket.gethostbyname(hostname).AndReturn(hostname)

dataset/ETHPy150Open m-lab/telescope/tests/test_mlab.py MLabTest.create_mock_dns_lookup_result/VarMisuse@23/33 `dns_result`->`hostname`