How to use the dnsimple.DNSimpleAuthException function in dnsimple

To help you get started, we’ve selected a few dnsimple examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github onlyhavecans / dnsimple-python / tests / test_auth.py View on Github external
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)