Example #1
0
 def test_cache_clear(self):
     input = {'disk1': nt(5, 5, 5)}
     wrap_numbers(input, 'disk_io')
     wrap_numbers(input, 'disk_io')
     wrap_numbers.cache_clear('disk_io')
     self.assertEqual(wrap_numbers.cache_info(), ({}, {}, {}))
     wrap_numbers.cache_clear('disk_io')
     wrap_numbers.cache_clear('?!?')
Example #2
0
 def test_cache_clear(self):
     input = {'disk1': nt(5, 5, 5)}
     wrap_numbers(input, 'disk_io')
     wrap_numbers(input, 'disk_io')
     wrap_numbers.cache_clear('disk_io')
     self.assertEqual(wrap_numbers.cache_info(), ({}, {}, {}))
     wrap_numbers.cache_clear('disk_io')
     wrap_numbers.cache_clear('?!?')
Example #3
0
 def setUp(self):
     wrap_numbers.cache_clear()
Example #4
0
 def setUp(self):
     wrap_numbers.cache_clear()