be careful that empty token like dedent are not counted as parens
()
| 243 | nt.assert_equal(tf.transform(HELP_UNICODE[0]), HELP_UNICODE[2]) |
| 244 | |
| 245 | def test_find_assign_op_dedent(): |
| 246 | """ |
| 247 | be careful that empty token like dedent are not counted as parens |
| 248 | """ |
| 249 | class Tk: |
| 250 | def __init__(self, s): |
| 251 | self.string = s |
| 252 | |
| 253 | nt.assert_equal(_find_assign_op([Tk(s) for s in ('','a','=','b')]), 2) |
| 254 | nt.assert_equal(_find_assign_op([Tk(s) for s in ('','(', 'a','=','b', ')', '=' ,'5')]), 6) |
| 255 | |
| 256 | def test_check_complete(): |
| 257 | cc = ipt2.TransformerManager().check_complete |
nothing calls this directly
no test coverage detected