def main(): """ Entrypoint """ arguments = parse_args() download = VideoDownloader(arguments) download.run(arguments.output, arguments.video_url) sys.exit(0)
def test_error(self): with nose.tools.assert_raises(DownloadError): downloader = VideoDownloader({}) downloader.error(DownloadError) with nose.tools.assert_raises(ExtractionError): downloader = VideoDownloader({}) downloader.error(ExtractionError)