'Image has frame if specified.'

def test_frame(self):

    img_div = pq_img(self.p, '[[Image:test.jpg|frame|caption]]', 'div.img')
    assert (not img_div('img').hasClass('frameless'))
    eq_('caption', img_div('img').attr('alt'))
    eq_('caption', img_div.text())
    eq_(self.img.file.url, img_div('img').attr('src'))
