move examples to doc directory

--HG--
branch : trunk
This commit is contained in:
holger krekel
2009-10-29 17:54:37 +01:00
parent 270ac2bc0d
commit 7aee121bd7
30 changed files with 0 additions and 1 deletions

View File

@@ -1,14 +0,0 @@
import py
failure_demo = py.magic.autopath().dirpath('failure_demo.py')
pytest_plugins = "pytest_pytester"
def test_failure_demo_fails_properly(testdir):
reprec = testdir.inline_run(failure_demo)
passed, skipped, failed = reprec.countoutcomes()
assert passed == 0
assert failed == 20, failed
colreports = reprec.getreports("pytest_collectreport")
failed = len([x.failed for x in colreports])
assert failed == 4