#NEWLINE# def test_example_items1( self , testdir ) : #NEWLINE# #INDENT# p = testdir . makepyfile ( '\n            def testone():\n                pass\n\n            class TestX:\n                def testmethod_one(self):\n                    pass\n\n            class TestY(TestX):\n                pass\n        ' ) #NEWLINE# ( items , reprec ) = testdir . inline_genitems ( self ) #NEWLINE# assert ( len ( items ) == 3 ) #NEWLINE# assert ( items [ 0 ] . name == 'testone' ) #NEWLINE# assert ( items [ 1 ] . name == 'testmethod_one' ) #NEWLINE# assert ( items [ 2 ] . name == 'testmethod_one' ) #NEWLINE# assert ( items [ 0 ] . getmodpath ( ) == 'testone' ) #NEWLINE# assert ( items [ 1 ] . getmodpath ( ) == 'TestX.testmethod_one' ) #NEWLINE# assert ( items [ 2 ] . getmodpath ( ) == 'TestY.testmethod_one' ) #NEWLINE# s = items [ 0 ] . getmodpath ( stopatmodule = False ) #NEWLINE# assert s . endswith ( 'test_example_items1.testone' ) #NEWLINE# print ( s )