#NEWLINE# def test_invalid_path( self ) : #NEWLINE# #INDENT# '\n        Non-existent file handled.\n        ' #NEWLINE# no_file = FilePath ( self . mktemp ( ) ) #NEWLINE# options = BenchmarkOptions ( ) #NEWLINE# options . parseOptions ( [ '--userdata' , '@{}' . format ( no_file . path ) ] ) #NEWLINE# with capture_stderr ( ) as captured_stderr : #NEWLINE# #INDENT# exception = self . assertRaises ( SystemExit , parse_userdata , options ) #NEWLINE# self . assertIn ( 'Invalid user data file' , exception . args [ 0 ] ) #NEWLINE# self . assertIn ( options . getUsage ( ) , captured_stderr ( ) )