def test_bad_syntax(): assert _compile_regex(r'(') is None
def test_good_syntax(): assert _compile_regex(r'asdf') is not None