def METHOD_NAME(self):
    """Packaged modules should be able to use the importlib.resources API to access
    resources saved in the package.
    """
    mod_src = dedent(
        """\
        import importlib.resources
        import my_cool_resources
        def secret_message():
            return importlib.resources.read_text(my_cool_resources, 'sekrit.txt')
        """
    )
    buffer = BytesIO()
    with PackageExporter(buffer) as pe:
        pe.save_source_string("foo.bar", mod_src)
        pe.save_text("my_cool_resources", "sekrit.txt", "my sekrit plays")
    buffer.seek(0)
    importer = PackageImporter(buffer)
    self.assertEqual(
        importer.import_module("foo.bar").secret_message(), "my sekrit plays"
    )