()
| 477 | |
| 478 | #[test] |
| 479 | fn 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")] |