def test_limit(self): results = services.search(query='cheese', limit=2) channel_results = results['channels'] assert len(channel_results) == 2 names = sorted((r.name for r in channel_results)) assert names == sorted(('Cheese', 'Cheese on Toast recipes')) video_results = results['videos'] assert len(video_results) == 1
def test_does_not_return_videos_for_deleted_channel(self): results = services.search(query='Video for deleted channel') assert not results['channels'] assert not results['videos']
def test_does_not_return_terminated_channel_videos(self): results = services.search(query='Video for terminated channel') assert not results['channels'] assert not results['videos']
def test_does_not_return_deleted_channels(self): results = services.search(query='Deleted') assert not results['channels'] assert not results['videos']
def test_does_not_return_removed_videos(self): results = services.search(query='Video marked as removed') assert not results['channels'] assert not results['videos']