

def test_is_youtube():
    data = [('http://www.youtube.com/watch?v=N29XAFjiKf4', True), ('http://youtu.be/N29XAFjiKf4', True)]
    for (url, expected) in data:
        assert (is_youtube(url) == expected)

dataset/ETHPy150Open pyvideo/steve/tests/test_utils.py test_is_youtube/original