(self)
| 40 | force_str(MyString()) |
| 41 | |
| 42 | def test_force_str_lazy(self): |
| 43 | s = SimpleLazyObject(lambda: "x") |
| 44 | self.assertIs(type(force_str(s)), str) |
| 45 | |
| 46 | def test_force_str_DjangoUnicodeDecodeError(self): |
| 47 | reason = "unexpected end of data" if PYPY else "invalid start byte" |
nothing calls this directly
no test coverage detected