def test_flat_absolute(self):
        """Tests a simple flat and absolute-addressed scene"""
        with tempfile.TemporaryDirectory() as temp_dir:
            s, dataset = self._build_flat_absolute(temp_dir)

            # Export it
            export_dir = os.path.join(temp_dir, "export")
            dataset.export(
                export_dir=export_dir,
                dataset_type=fo.types.MediaDirectory,
                export_media=True,
            )

            # All files flat in export_dir
            fileset = set(os.listdir(export_dir))
            self.assertSetEqual(
                fileset,
                {"image.jpeg", "pcd.pcd", "obj.obj", "mtl.mtl", "s1.fo3d"},
            )

            # Write temp scene with resolving relative paths, so we can test
            #   that scenes are equal if relative paths are resolved
            tmp_scene = fo.Scene.from_fo3d(os.path.join(export_dir, "s1.fo3d"))
            tmp_scene.write(
                os.path.join(export_dir, "test.fo3d"),
                resolve_relative_paths=True,
            )
            scene2 = fo.Scene.from_fo3d(os.path.join(export_dir, "test.fo3d"))

            self._assert_scene_content(s, scene2)
Tests a simple flat and absolute-addressed scene
tests/unittests/import_export_tests.py