def test_statuses_filter_track(samp_auth): """ Run statuses filter with track keywords. """ track = TEST_QUERY iterable = stream.statuses_filter(samp_auth, track=track) iterable = islice(iterable, 5) for line in iterable: pass
def test_statuses_filter_follow(samp_auth): """ Run statuses filter with follow ids. """ follow = [uid for uid, _ in TEST_USERS] iterable = stream.statuses_filter(samp_auth, follow=follow) iterable = islice(iterable, 1) for line in iterable: pass