(self)
| 301 | assert matches.index("example2") < matches.index("example1") |
| 302 | |
| 303 | def test_unicode_completions(self): |
| 304 | ip = get_ipython() |
| 305 | # Some strings that trigger different types of completion. Check them both |
| 306 | # in str and unicode forms |
| 307 | s = ["ru", "%ru", "cd /", "floa", "float(x)/"] |
| 308 | for t in s + list(map(str, s)): |
| 309 | # We don't need to check exact completion values (they may change |
| 310 | # depending on the state of the namespace, but at least no exceptions |
| 311 | # should be thrown and the return value should be a pair of text, list |
| 312 | # values. |
| 313 | text, matches = ip.complete(t) |
| 314 | self.assertIsInstance(text, str) |
| 315 | self.assertIsInstance(matches, list) |
| 316 | |
| 317 | def test_latex_completions(self): |
| 318 | ip = get_ipython() |
nothing calls this directly
no test coverage detected