Exemplo n.º 1
0
def test_no_https():
    try:
        no_https_api = API(environ.get('TEST_USER', 'test_user'),
                           environ.get('TEST_KEY', 'test_key'),
                           https=False)
        assert no_https_api.domain_search('google').data()
    except exceptions.NotAuthorizedException:
        pass
Exemplo n.º 2
0
def test_no_https():
    no_https_api = API(environ.get('TEST_USER', 'test_user'),
                       environ.get('TEST_KEY', 'test_key'),
                       https=False)
    assert no_https_api.domain_search('google').data()