

def testAddYoutubeVideo(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',): [{
            'embed_url_autoplay': '',
            'thumbnail480x360': '',
            'thumbnail90x120': '',
            'title': '',
            'description': '',
            'link': '',
            'id': 'http://gdata.youtube.com/feeds/api/videos/03aA',
            'published': '',
        }, {
            
        }],
    }
    getIsVideoExistsReturn = {
        ('http://gdata.youtube.com/feeds/api/videos/03aA',): False,
    }
    saveVideoReturn = {
        ('http://gdata.youtube.com/feeds/api/videos/03aA',): Video_test(1),
    }
    av = AddVideo_test(options, self, getMemberObjectReturn, getYoutubeVideosReturn, getIsVideoExistsReturn, av)
    self.assertTrue(av.run())

dataset/ETHPy150Open ofri/Open-Knesset/video/management/commands/sub_commands/tests/AddVideo.py testAddVideo.testAddYoutubeVideo/VarMisuse@181/364 `saveVideoReturn`->`av`