It might be good to clean up the store setting after by either setting the store to None in a teardown, or do `self.addCleanup(set_store, None)` here in the setup.

@rockstar discovered a longstanding bug in the RestAPITestMixin where this wasn't cleaned up, and which caused the lock tests to fail if they were run after the rest tests were run.