def test_domain(self):
        s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
        s.bind(('',0))
        port = s.getsockname()[1]
        s.close()
        cb, client_cmd, out, err = self.simple_runner(
            '-p {port} -d localhost:{port}'.format(port=port),
            *client_scripts['short'])
        self.assertTrue("http://localhost:{port}".format(port=port) in client_cmd)
dataset/ETHPy150Open EnigmaCurry/curlbomb/tests.py/CurlbombTestBase.test_domain/original