def test_image_size():
 thisurl = 'http://www.google.fr/images/srpr/logo3w.png'
 img = display.Image(url=thisurl, width=200, height=200)
 nt.assert_equal((u'<img src="%s" width="200" height="200"/>' % thisurl), img._repr_html_())
 img = display.Image(url=thisurl, width=200)
 nt.assert_equal((u'<img src="%s" width="200"/>' % thisurl), img._repr_html_())
 img = display.Image(url=thisurl)
 nt.assert_equal((u'<img src="%s"/>' % thisurl), img._repr_html_())
 img = display.Image(url=thisurl, unconfined=True)
 nt.assert_equal((u'<img src="%s" class="unconfined"/>' % thisurl), img._repr_html_())

def test_image_size ( ) : thisurl = 'http://www.google.fr/images/srpr/logo3w.png' img = display . Image ( url = thisurl , width = 200 , height = 200 ) nt . assert_equal ( ( u'<img src="%s" width="200" height="200"/>' % thisurl ) , img . _repr_html_ ( ) ) img = display . Image ( url = thisurl , width = 200 ) nt . assert_equal ( ( u'<img src="%s" width="200"/>' % thisurl ) , img . _repr_html_ ( ) ) img = display . Image ( url = thisurl ) nt . assert_equal ( ( u'<img src="%s"/>' % thisurl ) , img . _repr_html_ ( ) ) img = display . Image ( url = thisurl , unconfined = True ) nt . assert_equal ( ( u'<img src="%s" class="unconfined"/>' % thisurl ) , img . _repr_html_ ( ) )
simple test for display .