'If L{twisted.python.filepath.FilePath.getUserID} or
L{twisted.python.filepath.FilePath.getGroupID} are not implemented,
the owner returned is "0" and the group is returned as "0"'

def test_statOwnerGroupNotImplemented(self):

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