(self)
| 170 | |
| 171 | @os_helper.skip_unless_working_chmod |
| 172 | def test_directory(self): |
| 173 | os.mkdir(TESTFN) |
| 174 | os.chmod(TESTFN, 0o700) |
| 175 | st_mode, modestr = self.get_mode() |
| 176 | self.assertS_IS("DIR", st_mode) |
| 177 | if os.name == 'posix': |
| 178 | self.assertEqual(modestr, 'drwx------') |
| 179 | else: |
| 180 | self.assertEqual(modestr[0], 'd') |
| 181 | |
| 182 | @os_helper.skip_unless_symlink |
| 183 | def test_link(self): |
nothing calls this directly
no test coverage detected