def test_frameless_link(self):
        img_a = pq_img(self.p,
                       '[[Image:test.jpg|page=Installing Firefox]]', 'a')
        img = img_a('img')
        assert 'frameless' in img.attr('class')
        eq_('/en-US/kb/installing-firefox', img_a.attr('href'))
Image has frameless class and link if specified.
dataset/ETHPy150Open mozilla/kitsune/kitsune/sumo/tests/test_parser.py/TestWikiImageTags.test_frameless_link