#NEWLINE# def test_existingRemoteDirectory( self ) : #NEWLINE# #INDENT# "\n        Test that a C{mkdir} on an existing directory fails with the\n        appropriate error, and doesn't log an useless error server side.\n        " #NEWLINE# def _check( results ) : #NEWLINE# #INDENT# self . assertEqual ( results [ 0 ] , '' ) #NEWLINE# self . assertEqual ( results [ 1 ] , 'remote error 11: mkdir failed' ) #NEWLINE# #UNINDENT# d = self . runScript ( 'mkdir testMakeDirectory' , 'mkdir testMakeDirectory' ) #NEWLINE# d . addCallback ( _check ) #NEWLINE# return _check