def assertFileUid(self, file_name, expected_uid):
    st = os.stat(file_name)
    actual_uid = st.st_uid
    self.assertEqual(actual_uid, expected_uid)
Checks that the user id of a file is what we expect.
dataset/ETHPy150Open ganeti/ganeti/test/py/testutils/__init__.py/GanetiTestCase.assertFileUid