Exemple #1
0
def test_video_show():
    vid = "pD1gDSao1eA"
    v = YouTubeVideo(vid).get_stream()
    result = v._repr_html_()
    assert result == v.display()._repr_html_()
    # TODO actually parse the html and check kwargs
    from IPython.display import Video as IV

    expected = IV(v.uri)._repr_html_()
    assert result == expected
Exemple #2
0
def test_youtube_show():
    vid = "pD1gDSao1eA"
    yt = YouTubeVideo(vid)
    result = yt._repr_html_()
    assert result == yt.display()._repr_html_()
    # TODO actually parse the html and check kwargs
    from IPython.display import YouTubeVideo as IYT

    expected = IYT(vid)._repr_html_()
    assert result == expected