#NEWLINE# def test_collect_two_commandline_args( self , testdir ) : #NEWLINE# #INDENT# p = testdir . makepyfile ( 'def test_func(): pass' ) #NEWLINE# aaa = testdir . mkpydir ( 'aaa' ) #NEWLINE# bbb = testdir . mkpydir ( 'bbb' ) #NEWLINE# test_aaa = aaa . join ( 'test_aaa.py' ) #NEWLINE# p . copy ( test_aaa ) #NEWLINE# test_bbb = bbb . join ( 'test_bbb.py' ) #NEWLINE# p . move ( test_bbb ) #NEWLINE# id = '.' #NEWLINE# ( items , hookrec ) = testdir . inline_genitems ( id ) #NEWLINE# assert ( len ( items ) == 2 ) #NEWLINE# py . std . pprint . pprint ( id . calls ) #NEWLINE# hookrec . assert_contains ( [ ( 'pytest_collectstart' , 'collector.fspath == test_aaa' ) , ( 'pytest_pycollect_makeitem' , "name == 'test_func'" ) , ( 'pytest_collectreport' , "report.nodeid == 'aaa/test_aaa.py'" ) , ( 'pytest_collectstart' , 'collector.fspath == test_bbb' ) , ( 'pytest_pycollect_makeitem' , "name == 'test_func'" ) , ( 'pytest_collectreport' , "report.nodeid == 'bbb/test_bbb.py'" ) ] )