'Test the media page.'

def test_image_media_page(self):

    img = ImageFactory()
    response = self.client.get(img.get_absolute_url(), follow=True)
    eq_(200, response.status_code)
    doc = pq(response.content)
    eq_(img.title, doc('h1').text())
    eq_(img.description, doc('#media-object    div.description').text())
    eq_(img.file.url, doc('#media-view    img')[0].attrib['src'])
