[svn r58287] add a test for __version__ attr

--HG--
branch : trunk
This commit is contained in:
hpk 2008-09-21 09:19:30 +02:00
parent 634679a4db
commit eebb9d7257
1 changed files with 4 additions and 0 deletions

View File

@ -3,6 +3,10 @@ from py.__.test.outcome import Failed
from py.__.test.testing import suptest
conftestpath = py.magic.autopath().dirpath("conftest.py")
def test_version():
mod = conftestpath.pyimport()
assert hasattr(mod, "__version__")
class TestTestCaseInstance(suptest.InlineSession):
def setup_method(self, method):
super(TestTestCaseInstance, self).setup_method(method)