In test_availability_zones.py and and test_compute.py, There are two tests for availability_zones.reset_cache which can not make sense.
Follow code: az.reset_cache() self.assertIsNone(az._get_cache().get('cache'))
if we do not add cache for key 'cache', the result of az._get_cache().get('cache') before az.reset_cache() is same as after az.reset_cache(). So it can not make sense.
In test_availabili ty_zones. py and and test_compute.py, There are two tests for availability_ zones.reset_ cache which can not make sense.
Follow code:
az.reset_ cache()
self.assertIsN one(az. _get_cache( ).get(' cache') )
if we do not add cache for key 'cache', the result of az._get_ cache() .get('cache' ) before az.reset_cache() is same as after az.reset_cache(). So it can not make sense.