def test_base_get_request_bad_url(): b = BaseShortener() url = '.....' with pytest.raises(BadURLException): b._get(url)
def test_base_get_request_bad_url(): shortener = BaseShortener() url = "....." with pytest.raises(BadURLException): shortener._get(url)