'You can nest [[Image:]] inside {for} inside {button}.'

def test_button_image_for_nesting(self):

    ImageFactory(title='image-file.png')
    text = '{button    {for    mac}[[Image:image-file.png]]{/for}    text}'
    p = WikiParser()
    doc = pq(p.parse(text))
    assert ('frameless' in doc('img').attr('class'))
    eq_(0, doc('div.caption').length)
    eq_(0, doc('div.img').length)
