Files
pytest2/testing/plugin/test_pytest_tmpdir.py
holger krekel b04a04cabd make py lib a self-contained directory again
- move and merge _py/ bits back to py/
- fixes all around

--HG--
branch : trunk
2009-11-04 21:34:07 +01:00

10 lines
349 B
Python

from py.plugin.pytest_tmpdir import pytest_funcarg__tmpdir
def test_funcarg(testdir):
from py.impl.test.funcargs import FuncargRequest
item = testdir.getitem("def test_func(tmpdir): pass")
p = pytest_funcarg__tmpdir(FuncargRequest(item))
assert p.check()
bn = p.basename.strip("0123456789-")
assert bn.endswith("test_func")