Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit cdaaaa3

Browse files
committed
Little test file for plugin
1 parent 0dda68f commit cdaaaa3

1 file changed

Lines changed: 33 additions & 0 deletions

File tree

IPython/testing/plugin/simple.py

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
"""Simple example using doctests.
2+
3+
This file just contains doctests both using plain python and IPython prompts.
4+
All tests should be loaded by nose.
5+
"""
6+
7+
def pyfunc():
8+
"""Some pure python tests...
9+
10+
>>> pyfunc()
11+
'pyfunc'
12+
13+
>>> import os
14+
15+
>>> 2+3
16+
5
17+
18+
>>> for i in range(3):
19+
... print i,
20+
... print i+1,
21+
...
22+
0 1 1 2 2 3
23+
"""
24+
return 'pyfunc'
25+
26+
27+
def ipyfunc2():
28+
"""Some pure python tests...
29+
30+
>>> 1+1
31+
2
32+
"""
33+
return 'pyfunc2'

0 commit comments

Comments
 (0)