@pytest.mark.short
@pytest.mark.vcr(cassette_library_dir='tests/cassettes/short_fixtures')
def test_expired_access_token(short_client, record_mode):
    short_client._set_tokens()
    old_refresh_token = short_client.refresh_token
    if (record_mode == 'all'):
        time.sleep(3)
    assert short_client.users.get('me')
    assert (old_refresh_token != short_client.refresh_token)
@pytest.mark.short
@pytest.mark.vcr(cassette_library_dir='tests/cassettes/short_fixtures')
def test_expired_access_token(short_client, record_mode):
    short_client._set_tokens()
    old_refresh_token = short_client.refresh_token
    if (record_mode == 'all'):
        time.sleep(3)
    assert short_client.users.get('me')
    assert (old_refresh_token != short_client.refresh_token)