()
| 41 | |
| 42 | #[test] |
| 43 | fn test_simple_round_trip() { |
| 44 | Python::attach(|py| { |
| 45 | let original = Simple { |
| 46 | name: "Alice".into(), |
| 47 | value: 42, |
| 48 | }; |
| 49 | let py_obj = pythonize(py, &original).unwrap(); |
| 50 | let result: Simple = depythonize(&py_obj).unwrap(); |
| 51 | assert_eq!(result, original); |
| 52 | }); |
| 53 | } |
| 54 | |
| 55 | #[test] |
| 56 | fn test_simple_empty_string_zero() { |
nothing calls this directly
no test coverage detected