| 238 | assert doc(m.str_from_bytes) == "str_from_bytes() -> str" |
| 239 | |
| 240 | class A: |
| 241 | def __str__(self): |
| 242 | return "this is a str" |
| 243 | |
| 244 | def __repr__(self): |
| 245 | return "this is a repr" |
| 246 | |
| 247 | assert m.str_from_object(A()) == "this is a str" |
| 248 | assert m.repr_from_object(A()) == "this is a repr" |