Esempio n. 1
0
 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)
Esempio n. 2
0
 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)
Esempio n. 3
0
 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)
Esempio n. 4
0
 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)