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

            # Export
            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"},
            )

            # Same file content
            scene2 = fo.Scene.from_fo3d(os.path.join(export_dir, "s1.fo3d"))
            self._assert_scene_content(s, scene2, export_dir)
Tests a simple flat and relative-addressed scene
tests/unittests/import_export_tests.py