/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. """
  2. Top level
  3. ---------
  4. Let's run a test.
  5. >>> foo(1)
  6. 2
  7. >>> 2 + 2
  8. 4
  9. """
  10. def foo(a):
  11. """
  12. >>> foo(2)
  13. 3
  14. """
  15. return a + 1