def test_teams(requests_mock): sub_resource = 'teams' path = 'users;use_login=1/teams' api = YahooFantasyApi(123456, 'nhl', timeout=0) mock_request(requests_mock, path, sub_resource) hasattr(api.user().teams().get(), sub_resource)
def test_meta(requests_mock): path = 'users;user_login=1' api = YahooFantasyApi(123456, 'nhl', timeout=0) mock_request(requests_mock, path, 'meta') hasattr(api.user().meta().get(), 'guid')