test_tools_utils.txt
17 lines
| 542 B
| text/plain
|
TextLexer
Brian E Granger
|
r1234 | ========================================= | ||
Doctests for the ``tools.utils`` module | ||||
========================================= | ||||
The way doctest loads these, the entire document is applied as a single test | ||||
Fernando Perez
|
r1333 | rather than multiple individual ones, unfortunately:: | ||
Brian E Granger
|
r1234 | |||
>>> from IPython.tools import utils | ||||
Fernando Perez
|
r1333 | |||
Brian E Granger
|
r1234 | # Some other tests for utils | ||
Fernando Perez
|
r1333 | |||
Brian E Granger
|
r1234 | >>> utils.marquee('Testing marquee') | ||
'****************************** Testing marquee ******************************' | ||||
Fernando Perez
|
r1333 | |||
Brian E Granger
|
r1234 | >>> utils.marquee('Another test',30,'.') | ||
'........ Another test ........' | ||||