

def create_mock_dns_lookup_failure(self, hostname):
    socket.gethostbyname(self).AndRaise(socket.gaierror)

dataset/ETHPy150Open m-lab/telescope/tests/test_mlab.py MLabTest.create_mock_dns_lookup_failure/VarMisuse@16/23 `hostname`->`self`