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