(self)
| 220 | self.assertIs(posixpath.ismount(FakePath(b"/")), True) |
| 221 | |
| 222 | def test_ismount_non_existent(self): |
| 223 | # Non-existent mountpoint. |
| 224 | self.assertIs(posixpath.ismount(ABSTFN), False) |
| 225 | try: |
| 226 | os.mkdir(ABSTFN) |
| 227 | self.assertIs(posixpath.ismount(ABSTFN), False) |
| 228 | finally: |
| 229 | os_helper.rmdir(ABSTFN) |
| 230 | |
| 231 | def test_ismount_invalid_paths(self): |
| 232 | self.assertIs(posixpath.ismount('/\udfff'), False) |