Show More
@@ -303,15 +303,15 b' def test_default_arguments_from_docstring():' | |||
|
303 | 303 | c = ip.Completer |
|
304 | 304 | kwd = c._default_arguments_from_docstring( |
|
305 | 305 | 'min(iterable[, key=func]) -> value') |
|
306 | nt.assert_equal(kwd,['key']) | |
|
306 | nt.assert_equal(kwd, ['key']) | |
|
307 | 307 | #with cython type etc |
|
308 | 308 | kwd = c._default_arguments_from_docstring( |
|
309 | 309 | 'Minuit.migrad(self, int ncall=10000, resume=True, int nsplit=1)\n') |
|
310 | nt.assert_equal(kwd,['ncall','resume','nsplit']) | |
|
310 | nt.assert_equal(kwd, ['ncall', 'resume', 'nsplit']) | |
|
311 | 311 | #white spaces |
|
312 | 312 | kwd = c._default_arguments_from_docstring( |
|
313 | 313 | '\n Minuit.migrad(self, int ncall=10000, resume=True, int nsplit=1)\n') |
|
314 | nt.assert_equal(kwd,['ncall','resume','nsplit']) | |
|
314 | nt.assert_equal(kwd, ['ncall', 'resume', 'nsplit']) | |
|
315 | 315 | |
|
316 | 316 | def test_line_magics(): |
|
317 | 317 | ip = get_ipython() |
General Comments 0
You need to be logged in to leave comments.
Login now