(self)
| 53 | self.assertEqual(fmt2 % str3, 'value is TEST') |
| 54 | |
| 55 | def test_encode_default_args(self): |
| 56 | self.checkequal(b'hello', 'hello', 'encode') |
| 57 | # Check that encoding defaults to utf-8 |
| 58 | self.checkequal(b'\xf0\xa3\x91\x96', '\U00023456', 'encode') |
| 59 | # Check that errors defaults to 'strict' |
| 60 | self.checkraises(UnicodeError, '\ud800', 'encode') |
| 61 | |
| 62 | def test_encode_explicit_none_args(self): |
| 63 | self.checkequal(b'hello', 'hello', 'encode', None, None) |
nothing calls this directly
no test coverage detected