def test_get_default_cache_region_default_expiration_time(self): region = cache_utils._get_default_cache_region(expiration_time=0) # default oslo.cache expiration_time value 600 was taken self.assertEqual(600, region.expiration_time) self.assertIsNotNone(region)
def test_get_default_cache_region(self): region = cache_utils._get_default_cache_region(expiration_time=60) self.assertEqual(60, region.expiration_time) self.assertIsNotNone(region)