#NEWLINE# def test_collect_topdir( self , testdir ) : #NEWLINE# #INDENT# p = testdir . makepyfile ( 'def test_func(): pass' ) #NEWLINE# id = '::' . join ( [ p . basename , 'test_func' ] ) #NEWLINE# config = testdir . parseconfig ( id ) #NEWLINE# topdir = testdir . tmpdir #NEWLINE# rcol = Session ( config ) #NEWLINE# assert ( topdir == colitems . fspath ) #NEWLINE# colitems = rcol . perform_collect ( [ rcol . nodeid ] , genitems = False ) #NEWLINE# assert ( len ( colitems ) == 1 ) #NEWLINE# assert ( colitems [ 0 ] . fspath == p )