Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save jakubczaplicki/45cb2c430c2a2f941c0ec374bb23b867 to your computer and use it in GitHub Desktop.
Save jakubczaplicki/45cb2c430c2a2f941c0ec374bb23b867 to your computer and use it in GitHub Desktop.
@mock.patch('aiodns.DNSResolver.query')
def test_resolve_fqdn_to_cname(self, query):
f = asyncio.Future()
f.set_result(("dummy_cname", "ttl"))
query.return_value = f
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment