Mercurial > hatta
changeset 2476:c20b28c300f3
added test for all_pages() recently fixed at #111
| author | Vlad Glagolev <scm@vaygr.net> |
|---|---|
| date | Sun, 04 Oct 2015 15:04:17 +0300 |
| parents | f396479ea240 |
| children | 3f47618b2cbd |
| files | tests/test_repo.py |
| diffstat | 1 files changed, 13 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/tests/test_repo.py Sun Oct 04 13:03:21 2015 +0300 +++ b/tests/test_repo.py Sun Oct 04 15:04:17 2015 +0300 @@ -353,3 +353,16 @@ assert author == self.author assert comment == self.comment + def test_all_pages(self, repo): + """ + Test for page listing both using repo prefix or not. + """ + + repo.save_text(self.title, self.text, self.author, self.comment, + parent=-1) + assert self.title in repo.all_pages() + + repo.repo_prefix = "prefix" + repo.save_text(self.title, self.text, self.author, self.comment, + parent=-1) + assert self.title in repo.all_pages()
