#NEWLINE# def test_alt( self ) : #NEWLINE# #INDENT# 'Image alt attribute is overriden but caption is not.' #NEWLINE# img_div = pq_img ( self . p , '[[Image:test.jpg|alt=my alt|frame|my caption]]' , 'div.img' ) #NEWLINE# img = img_div ( 'img' ) #NEWLINE# caption = img_div . text ( ) #NEWLINE# eq_ ( 'my alt' , img . attr ( 'alt' ) ) #NEWLINE# eq_ ( 'my caption' , caption )