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
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