

@mock.patch('acme.challenges.TLSSNI01Response.gen_cert')
def test_validation(self, mock_gen_cert):
    mock_gen_cert.return_value = ('cert', 'key')
    self.assertEqual(('cert', 'key'), self.msg.validation(KEY, cert_key=mock.sentinel.cert_key))
    mock_gen_cert.assert_called_once_with(key=mock.sentinel.cert_key)

dataset/ETHPy150Open letsencrypt/letsencrypt/acme/acme/challenges_test.py TLSSNI01Test.test_validation/original