

@mock.patch('acme.challenges.requests.get')
def test_simple_verify_port(self, mock_get):
    self.response.simple_verify(self.chall, domain='local', account_public_key=KEY.public_key(), port=8080)
    self.assertEqual('local:8080', urllib_parse.urlparse(mock_get.mock_calls[0][1][0]).netloc)

dataset/ETHPy150Open letsencrypt/letsencrypt/acme/acme/challenges_test.py HTTP01ResponseTest.test_simple_verify_port/original