'Test that all images show up on images gallery page.
Also, Make sure they don\'t show up on videos page.'

def test_gallery_images(self):

    img = ImageFactory()
    response = get(self.client, 'gallery.gallery', args=['image'])
    eq_(200, response.status_code)
    doc = pq(response.content)
    imgs = doc('#media-list    li    img')
    eq_(1, len(imgs))
    eq_(img.thumbnail_url_if_set(), imgs[0].attrib['src'])
