tests/util.py
raw| 1 | # Copyright (C) Jean-Paul Calderone |
| 2 | # Copyright (C) Twisted Matrix Laboratories. |
| 3 | # See LICENSE for details. |
| 4 | """ |
| 5 | Helpers for the OpenSSL test suite, largely copied from |
| 6 | U{Twisted<http://twistedmatrix.com/>}. |
| 7 | """ |
| 8 | |
| 9 | # This is the UTF-8 encoding of the SNOWMAN unicode code point. |
| 10 | NON_ASCII = b"\xe2\x98\x83".decode("utf-8") |
| 11 | |
| 12 | # The type name expected in warnings about using the wrong string type. |
| 13 | WARNING_TYPE_EXPECTED = "str" |