()
| 96 | |
| 97 | #[test] |
| 98 | fn test_rename_round_trip() { |
| 99 | Python::attach(|py| { |
| 100 | let original = WithRename { |
| 101 | first_name: "Bob".into(), |
| 102 | age: 30, |
| 103 | }; |
| 104 | let py_obj = pythonize(py, &original).unwrap(); |
| 105 | let result: WithRename = depythonize(&py_obj).unwrap(); |
| 106 | assert_eq!(result, original); |
| 107 | }); |
| 108 | } |
| 109 | |
| 110 | // --- #[serde(rename_all = "camelCase")] --- |
| 111 |
nothing calls this directly
no test coverage detected