#NEWLINE# def test_compat_attributes( self , testdir , recwarn ) : #NEWLINE# #INDENT# modcol = testdir . getmodulecol ( '\n            def test_pass(): pass\n            def test_fail(): assert 0\n        ' ) #NEWLINE# recwarn . clear ( ) #NEWLINE# assert ( modcol . Module == pytest . Module ) #NEWLINE# assert ( modcol . Class == pytest . Class ) #NEWLINE# assert ( modcol . Item == pytest . Item ) #NEWLINE# assert ( self . File == pytest . File ) #NEWLINE# assert ( modcol . Function == pytest . Function )