use anyhow::Result;
use openusd::schemas::proc::GenerativeProcedural;
use openusd::sdf;
use openusd::usd::Stage;
const FIXTURE: &str = "fixtures/usdProc_scene.usda";
#[test]
fn generative_procedural_from_fixture() -> Result<()> {
let stage = Stage::open(FIXTURE)?;
let p = GenerativeProcedural::get(&stage, sdf::path("/World/Scatter")?)?.expect("GenerativeProcedural");
assert_eq!(p.procedural_system_attr().get::<String>()?.as_deref(), Some("Houdini"));
assert!(GenerativeProcedural::get(&stage, sdf::path("/World")?)?.is_none());
Ok(())
}