Esempio n. 1
0
def main():
    """
    Entrypoint
    """
    arguments = parse_args()
    download = VideoDownloader(arguments)
    download.run(arguments.output, arguments.video_url)
    sys.exit(0)
Esempio n. 2
0
def main():
    """
    Entrypoint
    """
    arguments = parse_args()
    download = VideoDownloader(arguments)
    download.run(arguments.output, arguments.video_url)
    sys.exit(0)
Esempio n. 3
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)
Esempio n. 4
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)