'Link to an external page.'

def test_link(self):

    img_a = pq_img(self.p, '[[Image:test.jpg|link=http://test.com]]', 'a')
    img = img_a('img')
    eq_('test.jpg', img.attr('alt'))
    eq_(self.img.file.url, img.attr('src'))
    eq_('http://test.com', img_a.attr('href'))
