'Test that images only show for their set locale.'

def test_gallery_locale(self):

    ImageFactory(locale='es')
    url = reverse('gallery.gallery', args=['image'])
    response = self.client.get(url, follow=True)
    eq_(200, response.status_code)
    doc = pq(response.content)
    imgs = doc('#media-list    li    img')
    eq_(0, len(imgs))
    locale_url = reverse('gallery.gallery', locale='es', args=['image'])
    response = self.client.get(locale_url, follow=True)
    eq_(200, response.status_code)
    doc = pq(response.content)
    imgs = doc('#media-list    li    img')
    eq_(1, len(imgs))
