(self)
| 2017 | |
| 2018 | @unittest.skipUnless(pwd, "the pwd module is needed for this test") |
| 2019 | def test_owner(self): |
| 2020 | p = self.cls(self.base) / 'fileA' |
| 2021 | expected_uid = p.stat().st_uid |
| 2022 | expected_name = self._get_pw_name_or_skip_test(expected_uid) |
| 2023 | |
| 2024 | self.assertEqual(expected_name, p.owner()) |
| 2025 | |
| 2026 | @unittest.skipUnless(pwd, "the pwd module is needed for this test") |
| 2027 | @requires_root_user |
nothing calls this directly
no test coverage detected