'C{errno.ENOTDIR} should be translated to L{ftp.IsNotADirectoryError}.'

def test_notDirectory(self):

    d = ftp.errnoToFailure(errno.ENOTDIR, 'foo')
    return self.assertFailure(d, ftp.IsNotADirectoryError)
