<filename>tests/test_te_python.py
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""Tests for `te_python` module."""

import pytest
import requests

from te_python import te_python


def test_te_python_initialization():
    response = te_python.email_get_details('a53b7747d6bd3f59076d63469d92924e00f407ff472e5a539936453185ecca6c')
    assert isinstance(response, dict)


def test_update_api_url():
    # make a request to localhost (which should fail)... this makes sure that the base_api_url is being properly used
    with pytest.raises(requests.ConnectionError):
        te_python.email_get_details('a53b7747d6bd3f59076d63469d92924e00f407ff472e5a539936453185ecca6c')

<filename>tests/test_te_python.py
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""Tests for `te_python` module."""

import pytest
import requests

from te_python import te_python


def test_te_python_initialization():
    response = te_python.email_get_details('a53b7747d6bd3f59076d63469d92924e00f407ff472e5a539936453185ecca6c')
    assert isinstance(response, dict)


def test_update_api_url():
    # make a request to localhost (which should fail)... this makes sure that the base_api_url is being properly used
    with pytest.raises(requests.ConnectionError):
        te_python.email_get_details('a53b7747d6bd3f59076d63469d92924e00f407ff472e5a539936453185ecca6c')

#!/usr/bin/env python # -*- coding: utf-8 -*- Tests for `te_python` module. # make a request to localhost (which should fail)... this makes sure that the base_api_url is being properly used