'Create the export dir, contentstore, and modulestore for a test.'

@contextmanager
def _setup_test(self, modulestore_builder):

    with self._create_export_dir() as self.root_export_dir:
        with MongoContentstoreBuilder().build() as self.contentstore:
            with modulestore_builder.build(contentstore=self.contentstore) as self.store:
                self._create_course(self.store)
                (yield)
