

def test_gen_response(self):
    with mock.patch('acme.challenges.DNS.gen_validation') as mock_gen:
        mock_gen.return_value = mock.sentinel.validation
        response = self.msg.gen_response(KEY)
    from acme.challenges import DNSResponse
    response.assertTrue(isinstance(response, DNSResponse))
    self.assertEqual(response.validation, mock.sentinel.validation)

dataset/ETHPy150Open letsencrypt/letsencrypt/acme/acme/challenges_test.py DNSTest.test_gen_response/VarMisuse@51/76 `self`->`response`