()
| 27 | expect_token("foo", cell, i) |
| 28 | |
| 29 | def test_function(): |
| 30 | cell = "foo(a=5, b='10')" |
| 31 | expected = 'foo' |
| 32 | # up to `foo(|a=` |
| 33 | for i in range(cell.find('a=') + 1): |
| 34 | expect_token("foo", cell, i) |
| 35 | # find foo after `=` |
| 36 | for i in [cell.find('=') + 1, cell.rfind('=') + 1]: |
| 37 | expect_token("foo", cell, i) |
| 38 | # in between `5,|` and `|b=` |
| 39 | for i in range(cell.find(','), cell.find('b=')): |
| 40 | expect_token("foo", cell, i) |
| 41 | |
| 42 | def test_multiline(): |
| 43 | cell = '\n'.join([ |
no test coverage detected