#NEWLINE# def test_should_embed_video( ) : #NEWLINE# #INDENT# embedding = '<iframe src="http://www.example.com/bees.mpg"></iframe>' #NEWLINE# values = { #NEWLINE# #INDENT# 'type' : 'video' , #NEWLINE# 'version' : '1.0' , #NEWLINE# 'html' : oembed_response , #NEWLINE# #UNINDENT# } #NEWLINE# oembed_response = response . OEmbedVideoResponse ( create_value_function ( values ) ) #NEWLINE# assert ( render . DefaultRenderer ( ) . render ( 'http://example.com' , oembed_response ) == embedding )