'If L{twisted.python.filepath.FilePath.getNumberOfHardLinks} is not
implemented, the number returned is 0'

def test_statHardlinksNotImplemented(self):

    pathFunc = self.shell._path
    def raiseNotImplemented():
        raise NotImplementedError
    def notImplementedFilePath(path):
        f = pathFunc(path)
        f.getNumberOfHardLinks = raiseNotImplemented
        return f
    self.shell._path = notImplementedFilePath
    self.createDirectory('ned')
    d = self.shell.stat(('ned',), ('hardlinks',))
    self.assertEqual(self.successResultOf(d), [0])
