'Deleting a page clears any last-modified caching'

def test_deletion_clears_last_modified(self):

    rev = revision(is_approved=True, save=True)
    self.url = reverse('wiki.document', args=[rev.document.slug], locale=settings.WIKI_DEFAULT_LANGUAGE)
    cache_key = rev.document.last_modified_cache_key
    last_mod = cache.get(cache_key)
    ok_(last_mod)
    self.client.get(self.url, follow=False)
    ok_((cache.get(cache_key) == last_mod))
    rev.document.delete()
    ok_((not cache.get(cache_key)))
