()
| 132 | |
| 133 | |
| 134 | def test_attrs(): |
| 135 | cell = "a = obj.attr.subattr" |
| 136 | expected = "obj" |
| 137 | idx = cell.find("obj") + 1 |
| 138 | for i in range(idx, idx + 3): |
| 139 | expect_token(expected, cell, i) |
| 140 | idx = cell.find(".attr") + 2 |
| 141 | expected = "obj.attr" |
| 142 | for i in range(idx, idx + 4): |
| 143 | expect_token(expected, cell, i) |
| 144 | idx = cell.find(".subattr") + 2 |
| 145 | expected = "obj.attr.subattr" |
| 146 | for i in range(idx, len(cell)): |
| 147 | expect_token(expected, cell, i) |
| 148 | |
| 149 | |
| 150 | def test_line_at_cursor(): |
nothing calls this directly
no test coverage detected
searching dependent graphs…