()
| 68 | |
| 69 | #[test] |
| 70 | fn test_true() { |
| 71 | let gil = Python::acquire_gil(); |
| 72 | let py = gil.python(); |
| 73 | assert!(py.True().is_true()); |
| 74 | assert_eq!(true, py.True().as_object().extract(py).unwrap()); |
| 75 | assert!(true.to_py_object(py).as_object() == py.True().as_object()); |
| 76 | } |
| 77 | |
| 78 | #[test] |
| 79 | fn test_false() { |