(self)
| 185 | assert saferepr(val) == "b'øystein'" |
| 186 | |
| 187 | def test_unicode_bytes__long(self): |
| 188 | val = 'øystein'.encode() * 1024 |
| 189 | assert saferepr(val, maxlen=128).endswith("...'") |
| 190 | |
| 191 | def test_binary_bytes(self): |
| 192 | val = struct.pack('>QQQ', 12223, 1234, 3123) |