pytube / tests /test_p3_pytube.py
Kashyap Maduri
adding test around create youtube object from a url. Added a test file for testing on python3
6ffef98
raw
history blame
514 Bytes
#!/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)