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