'Verify that the right numbers come back from the right accessor methods
for file inode/device/nlinks/uid/gid (in a POSIX environment)'

def test_statinfoNumbersAreValid(self):

    class FakeStat:
        st_ino = 200
        st_dev = 300
        st_nlink = 400
        st_uid = 500
        st_gid = 600
    fake = FakeStat()
    def fakeRestat(*args, **kwargs):
        self.path._statinfo = fake
    self.path.restat = fakeRestat
    self.path._statinfo = None
    self.assertEqual(self.path.getInodeNumber(), fake.st_ino)
    self.assertEqual(self.path.getDevice(), fake.st_dev)
    self.assertEqual(self.path.getNumberOfHardLinks(), fake.st_nlink)
    self.assertEqual(self.path.getUserID(), fake.st_uid)
    self.assertEqual(self.path.getGroupID(), fake.st_gid)
