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