def test_authentication_error(self):
        invalid_api = api('INVALID_KEY', raise_errors=True, **self.options)

        self.assertRaises(AuthenticationError, invalid_api.emails)
Test raises AuthenticationError with invalid api key
dataset/ETHPy150Open sendwithus/sendwithus_python/sendwithus/test/__init__.py/TestExceptions.test_authentication_error