[svn r63208] moving example to top-level dir.

--HG--
branch : trunk
This commit is contained in:
hpk
2009-03-22 18:08:31 +01:00
parent 3305a0e3db
commit c81ffeb027
7 changed files with 37 additions and 0 deletions

View File

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