the memoize decorator adds the _invalidate_all function when called. Due to the deferred initialization that may not happen in a test.
the memoize decorator adds the _invalidate_all function when called. Due to the deferred initialization that may not happen in a test.