PageRenderTime 114ms CodeModel.GetById 112ms app.highlight 0ms RepoModel.GetById 1ms app.codeStats 0ms

/functional_tests/support/dtt/some_mod.py

https://bitbucket.org/jpellerin/nose/
Python | 17 lines | 7 code | 1 blank | 9 comment | 0 complexity | 5970cfa867a16bdf4e81373cb18d1105 MD5 | raw file
 1"""
 2Top level
 3---------
 4
 5Let's run a test.
 6
 7    >>> foo(1)
 8    2
 9    >>> 2 + 2
10    4
11"""
12def foo(a):
13    """
14    >>> foo(2)
15    3
16    """
17    return a + 1