(self)
| 2026 | |
| 2027 | @unittest.skipUnless(pwd, "the pwd module is needed for this test") |
| 2028 | def test_owner(self): |
| 2029 | p = self.cls(self.base) / 'fileA' |
| 2030 | expected_uid = p.stat().st_uid |
| 2031 | expected_name = self._get_pw_name_or_skip_test(expected_uid) |
| 2032 | |
| 2033 | self.assertEqual(expected_name, p.owner()) |
| 2034 | |
| 2035 | @unittest.skipUnless(pwd, "the pwd module is needed for this test") |
| 2036 | @unittest.skipUnless(root_in_posix, "test needs root privilege") |
nothing calls this directly
no test coverage detected