示例#1
0
    def test_get_embed(self):
        """
        get_embed() should return the HTML to embed the given uStream video.
        """
        embed_code = """<iframe src="http://www.ustream.tv/flash/video/\
2273554" width="320" height="260" />"""
        self.assertEquals(ustream.get_embed(BASE_URL), embed_code)
示例#2
0
    def test_get_embed(self):
        """
        get_embed() should return the HTML to embed the given uStream video.
        """
        embed_code = """<embed flashvars="autoplay=false" width="320"\
 height="260" allowfullscreen="true" allowscriptaccess="always"\
 src="http://www.ustream.tv/flash/video/2273554"\
 type="application/x-shockwave-flash" />"""
        self.assertEquals(ustream.get_embed(BASE_URL), embed_code)
示例#3
0
    def test_get_embed(self):
        """
        get_embed() should return the HTML to embed the given uStream video.
        """
        embed_code = """<embed flashvars="autoplay=false" width="320"\
 height="260" allowfullscreen="true" allowscriptaccess="always"\
 src="http://www.ustream.tv/flash/video/2273554"\
 type="application/x-shockwave-flash" />"""
        self.assertEquals(ustream.get_embed(BASE_URL), embed_code)