'The image draft is loaded for this user.'

def test_image_draft_shows(self):

    img = ImageFactory(is_draft=True, creator=self.u)
    response = get(self.client, 'gallery.gallery', args=['image'])
    eq_(200, response.status_code)
    doc = pq(response.content)
    assert doc('.file.preview    img').attr('src').endswith(img.file.name)
    eq_(1, doc('.file.preview    img').length)
