'Using a timeout greater than 30 days makes memcached think
it is an absolute expiration timestamp instead of a relative
offset. Test that we honour this convention. Refs #12399.'

def test_long_timeout(self):

    self.cache.set(u'key1', u'eggs', ((((60 * 60) * 24) * 30) + 1))
    self.assertEqual(self.cache.get(u'key1'), u'eggs')
    self.cache.add(u'key2', u'ham', ((((60 * 60) * 24) * 30) + 1))
    self.assertEqual(self.cache.get(u'key2'), u'ham')
    self.cache.set_many({u'key3': u'sausage', u'key4': u'lobster    bisque'}, ((((60 * 60) * 24) * 30) + 1))
    self.assertEqual(self.cache.get(u'key3'), u'sausage')
    self.assertEqual(self.cache.get(u'key4'), u'lobster    bisque')
