MCPcopy Create free account
hub / github.com/davidhewitt/pythonize / test_rename_all_round_trip

Function test_rename_all_round_trip

tests/test_structs.rs:129–140  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

127
128#[test]
129fn test_rename_all_round_trip() {
130 Python::attach(|py| {
131 let original = WithRenameAll {
132 first_name: "Jane".into(),
133 last_name: "Doe".into(),
134 year_of_birth: 1990,
135 };
136 let py_obj = pythonize(py, &original).unwrap();
137 let result: WithRenameAll = depythonize(&py_obj).unwrap();
138 assert_eq!(result, original);
139 });
140}
141
142// --- Unknown fields (default: ignore) ---
143

Callers

nothing calls this directly

Calls 2

pythonizeFunction · 0.85
depythonizeFunction · 0.85

Tested by

no test coverage detected