(self)
| 203 | check('a[Z-/]b', r'a[Z-\]b', False) |
| 204 | |
| 205 | def test_warnings(self): |
| 206 | with warnings.catch_warnings(): |
| 207 | warnings.simplefilter('error', Warning) |
| 208 | check = self.check_match |
| 209 | check('[', '[[]') |
| 210 | check('&', '[a&&b]') |
| 211 | check('|', '[a||b]') |
| 212 | check('~', '[a~~b]') |
| 213 | check(',', '[a-z+--A-Z]') |
| 214 | check('.', '[a-z--/A-Z]') |
| 215 | |
| 216 | |
| 217 | class TranslateTestCase(unittest.TestCase): |