'C{errno.EISDIR} should be translated to L{ftp.IsADirectoryError}.'

def test_isDirectory(self):

    d = ftp.errnoToFailure(errno.EISDIR, 'foo')
    return self.assertFailure(d, ftp.IsADirectoryError)
