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

Function string_methods

tests/test_class.rs:479–487  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

477
478#[test]
479fn string_methods() {
480 let gil = Python::acquire_gil();
481 let py = gil.python();
482
483 let obj = StringMethods::create_instance(py).unwrap();
484 py_assert!(py, obj, "str(obj) == 'str'");
485 py_assert!(py, obj, "repr(obj) == 'repr'");
486 py_assert!(py, obj, "'{0:x}'.format(obj) == 'format(x)'");
487}
488
489#[test]
490#[cfg(feature = "python27-sys")]

Callers

nothing calls this directly

Calls 1

pythonMethod · 0.80

Tested by

no test coverage detected