Changeset 741:fdb907248de0 in hatta-dev
- Timestamp:
- 01/24/10 13:33:27 (2 years ago)
- Branch:
- default
- File:
-
- 1 edited
-
tests/test_repo.py (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
tests/test_repo.py
r740 r741 64 64 """ 65 65 66 author = u'test author' 67 text = u'test text' 68 comment = u'test comment' 69 70 @py.test.mark.xfail 71 def test_filename(self, repo): 72 """ 73 Check if the page's file is named properly. 74 """ 75 76 title = u'some/page.txt' 77 filename = 'some/page.txt' 78 filepath = os.path.join(repo.path, filename) 79 repo.save_text(title, self.text, self.author, self.comment, parent=-1) 80 exists = os.path.exists(filepath) 81 assert exists 82 66 83 # XXX Put your tests here. 67 68 84 69 85 class TestMercurialStorage(object): … … 87 103 filepath = os.path.join(repo.path, filename) 88 104 repo.save_text(title, self.text, self.author, self.comment, parent=-1) 89 assert os.path.exists(filepath) 90 105 exists = os.path.exists(filepath) 106 assert exists 107 108 @py.test.mark.skipif("sys.platform == 'win32'") 91 109 def test_symlinks(self, repo): 92 110 """ … … 102 120 self.title) 103 121 122 @py.test.mark.skipif("sys.platform == 'win32'") 104 123 def test_symlinks_not_exist(self, repo): 105 124 """ … … 151 170 self.title, self.author, self.comment) 152 171 172 @py.test.mark.skipif("sys.platform == 'win32'") 153 173 def test_symlink_delete(self, repo): 154 174 """
Note: See TracChangeset
for help on using the changeset viewer.
