Changeset 814:45423de79eff
- Timestamp:
- 2009-07-22 07:44:01 (14 months ago)
- Author:
- Stefan Schwarzer <sschwarzer@…>
- Branch:
- default
- convert_revision:
- svn:778c30c8-61e0-0310-89d4-fe2f97a467b2/trunk@884
- Message:
-
Added a test for issue #39.
- Files:
-
Legend:
- Unmodified
- Added
- Removed
-
|
r773
|
r814
|
|
| 418 | 418 | self.failIf(abs(calculated_time_shift-host.time_shift()) > 120) |
| 419 | 419 | |
| | 420 | def test_special_broken_link(self): |
| | 421 | host = self.host |
| | 422 | broken_link_name = os.path.join("dir_with_broken_link", "nonexistent") |
| | 423 | self.assertEqual(host.lstat(broken_link_name)._st_target, |
| | 424 | "../nonexistent/nonexistent") |
| | 425 | self.assertEqual(bool(host.path.isdir(broken_link_name)), False) |
| | 426 | self.assertEqual(bool(host.path.isfile(broken_link_name)), False) |
| | 427 | self.assertEqual(bool(host.path.islink(broken_link_name)), True) |
| | 428 | |
| 420 | 429 | def test_concurrent_access(self): |
| 421 | 430 | self.make_file("_testfile_") |