#NEWLINE# def testCanFindParent( self ) : #NEWLINE# #INDENT# with TemporaryDirectory ( ) as d : #NEWLINE# #INDENT# fname = os . path . join ( d , 'pubspec.yaml' ) #NEWLINE# with open ( fname , 'wt' ) as f : #NEWLINE# #INDENT# f . write ( VALID_PUBSPEC_CONTENT ) #NEWLINE# #UNINDENT# p = PubspecFile . from_path ( fname ) #NEWLINE# self . assertEqual ( d , p . parent )