#NEWLINE# def test_pkgfile( self , testdir ) : #NEWLINE# #INDENT# tmpdir = testdir . tmpdir #NEWLINE# subdir = tmpdir . join ( 'subdir' ) #NEWLINE# x = subdir . ensure ( 'x.py' ) #NEWLINE# subdir . ensure ( '__init__.py' ) #NEWLINE# config = testdir . parseconfigure ( x ) #NEWLINE# col = testdir . getnode ( config , x ) #NEWLINE# assert isinstance ( col , pytest . Module ) #NEWLINE# assert ( col . name == 'x.py' ) #NEWLINE# assert ( col . parent . parent is None ) #NEWLINE# for col in col . listchain ( ) : #NEWLINE# #INDENT# assert ( col . config is config )