MCPcopy Create free account
hub / github.com/dgrunwald/rust-cpython / test_true

Function test_true

src/objects/boolobject.rs:70–76  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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() {

Callers

nothing calls this directly

Calls 1

pythonMethod · 0.80

Tested by

no test coverage detected