def test__get_url_unsuccessful(): """ Unit tests for _get_url method, unsuccessful case. """ try: FileIO._get_url(TEST_UNKNOWN) except IOError: assert True
def test__get_url_successful(): """ Unit tests for _get_url method, successful case. """ assert isinstance(FileIO._get_url(TEST_URL), bytes)