'A template view can be cached'

def test_cached_views(self):

    response = self.client.get('/template/cached/bar/')
    self.assertEqual(response.status_code, 200)
    time.sleep(1.0)
    response2 = self.client.get('/template/cached/bar/')
    self.assertEqual(response2.status_code, 200)
    self.assertEqual(response.content, response2.content)
    time.sleep(2.0)
    response2 = self.client.get('/template/cached/bar/')
    self.assertEqual(response2.status_code, 200)
    self.assertNotEqual(response.content, response2.content)
