

@responses.activate
def test_googl_expand_method():
    body = json.dumps(dict(longUrl=expanded))
    param = urlencode({
        'key': api_key,
        'shortUrl': short_url,
    })
    url = '{}?{}'.format(s.api_url, param)
    responses.add(responses.GET, url, body=body, match_querystring=True)
    expanded_result = s.expand(short_url)
    assert (expanded_result == expanded)

dataset/ETHPy150Open ellisonleao/pyshorteners/tests/test_googl.py test_googl_expand_method/original