'Check that L{ftp.FTPAnonymousShell} returns an error when trying to
open it in write mode.'

def test_anonymousWrite(self):

    shell = ftp.FTPAnonymousShell('')
    d = shell.openForWriting(('foo',))
    self.assertFailure(d, ftp.PermissionDeniedError)
    return d
