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

Function test_strings_are_sequences

src/objects/sequence.rs:331–340  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

329
330 #[test]
331 fn test_strings_are_sequences() {
332 let gil = Python::acquire_gil();
333 let py = gil.python();
334 let v = "London Calling";
335 assert!(v
336 .to_py_object(py)
337 .into_object()
338 .cast_into::<PySequence>(py)
339 .is_ok());
340 }
341 #[test]
342 fn test_seq_empty() {
343 let gil = Python::acquire_gil();

Callers

nothing calls this directly

Calls 1

pythonMethod · 0.80

Tested by

no test coverage detected