

def testInvalidYoutubeVideoData(self):
    options = Options_test(self, {
        ('video-link', None): 'http://youtube/video?v=03aA',
        ('object-type', None): 'member',
        ('object-id', None): '1',
        ('is_sticky', False): True,
    })
    getMemberObjectReturn = {
        ('1',): Member_test(),
    }
    getYoutubeVideosReturn = {
        ('http://gdata.youtube.com/feeds/api/videos/03aA',): [{
            
        }, {
            
        }],
    }
    getIsVideoExistsReturn = {
        ('http://gdata.youtube.com/feeds/api/videos/03aA',): False,
    }
    saveVideoReturn = {
        
    }
    av = AddVideo_test(av, self, getMemberObjectReturn, getYoutubeVideosReturn, getIsVideoExistsReturn, saveVideoReturn)
    self.assertFalse(av.run())
    self.assertIn('failed to add the video', av.ans)

dataset/ETHPy150Open ofri/Open-Knesset/video/management/commands/sub_commands/tests/AddVideo.py testAddVideo.testInvalidYoutubeVideoData/VarMisuse@122/225 `options`->`av`