def test_glance_cache_size_property_less_then_5gb(self):
     volumes_size = manager.gb_to_mb(30)
     default = manager.gb_to_byte(5)
     with patch.object(manager, 'find_size_by_name') as get_size:
         get_size.return_value = volumes_size
         result = manager.calc_glance_cache_size(self.volumes)
     self.assertEqual(result, str(default))
 def test_glance_cache_size_property_less_then_5gb(self):
     volumes_size = manager.gb_to_mb(30)
     default = manager.gb_to_byte(5)
     with patch.object(manager, "find_size_by_name") as get_size:
         get_size.return_value = volumes_size
         result = manager.calc_glance_cache_size(self.volumes)
     self.assertEqual(result, str(default))