(reason, s, comp, start=None, end=None)
| 392 | ip = get_ipython() |
| 393 | |
| 394 | def _test_complete(reason, s, comp, start=None, end=None): |
| 395 | l = len(s) |
| 396 | start = start if start is not None else l |
| 397 | end = end if end is not None else l |
| 398 | with provisionalcompleter(): |
| 399 | ip.Completer.use_jedi = True |
| 400 | completions = set(ip.Completer.completions(s, l)) |
| 401 | ip.Completer.use_jedi = False |
| 402 | assert_in(Completion(start, end, comp), completions, reason) |
| 403 | |
| 404 | def _test_not_complete(reason, s, comp): |
| 405 | l = len(s) |
nothing calls this directly
no test coverage detected