'Image alt attribute is overriden but caption is not.'

def test_alt(self):

    img_div = pq_img(self.p, '[[Image:test.jpg|alt=my    alt|frame|my    caption]]', 'div.img')
    img = img_div('img')
    caption = img_div.text()
    eq_('my    alt', img.attr('alt'))
    eq_('my    caption', caption)
