Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def test_authentication_with_no_credentials_raises(self):
with pytest.raises(DNSimpleAuthException) as exception:
client = DNSimple()
assert 'insufficient authentication details provided.' in str(exception.value)