'Test permission cache clearing on page save'

def test_cache_invalidation(self):

    set_permission_cache(self.user_normal, 'change_page', [self.home_page.id])
    self.home_page.save()
    cached_permissions = get_permission_cache(self.user_normal, 'change_page')
    self.assertIsNone(cached_permissions)
