File size: 514 Bytes
6ffef98
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
import warnings
import mock
from nose.tools import eq_, raises
from pytube import api
from pytube.exceptions import MultipleObjectsReturned, AgeRestricted, \
    DoesNotExist, PytubeError


class TestPytube(object):
    def setUp(self):
        self.url = 'http://www.youtube.com/watch?v=9bZkp7q19f0'

    def test_YT_create_from_url(self):
        'test creation of YouYube Object from url'
        yt = api.YouTube(self.url)