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

Function python3_string_methods

tests/test_class.rs:501–507  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

499#[test]
500#[cfg(feature = "python3-sys")]
501fn python3_string_methods() {
502 let gil = Python::acquire_gil();
503 let py = gil.python();
504
505 let obj = StringMethods::create_instance(py).unwrap();
506 py_assert!(py, obj, "bytes(obj) == b'bytes'");
507}
508
509py_class!(class Comparisons |py| {
510 data val: i32;

Callers

nothing calls this directly

Calls 1

pythonMethod · 0.80

Tested by

no test coverage detected