'#20613/#18541 -- Ensures pickling is done outside of the lock.'

def test_locking_on_pickle(self):

    bad_obj = PicklingSideEffect(cache)
    cache.set('set', bad_obj)
    self.assertFalse(bad_obj.locked, 'Cache    was    locked    during    pickling')
    cache.add('add', bad_obj)
    self.assertFalse(bad_obj.locked, 'Cache    was    locked    during    pickling')
