Mercurial > kallithea
comparison rhodecode/tests/functional/test_files.py @ 3574:000653f7cdf9 beta
avoid displaying repr of internal classes in user facing messages
The context of the message will tell where the problem was and there is no reason to show
... does not exist for this repository <MercurialRepository at /home/marcink/repos/rhodecode>
author | Mads Kiilerich <madski@unity3d.com> |
---|---|
date | Thu, 21 Mar 2013 11:17:01 +0100 |
parents | 6104dfd35b16 |
children | ca7785fae354 |
comparison
equal
deleted
inserted
replaced
3573:881ae12b3c7d | 3574:000653f7cdf9 |
---|---|
292 f_path=f_path)) | 292 f_path=f_path)) |
293 | 293 |
294 msg = """Revision %r does not exist for this repository""" % (rev) | 294 msg = """Revision %r does not exist for this repository""" % (rev) |
295 self.checkSessionFlash(response, msg) | 295 self.checkSessionFlash(response, msg) |
296 | 296 |
297 msg = """%s""" % (HG_REPO) | 297 self.assertEqual('http://localhost/%s/files/tip/' % HG_REPO, response.headers['location']) |
298 self.checkSessionFlash(response, msg) | |
299 | 298 |
300 def test_raw_file_wrong_f_path(self): | 299 def test_raw_file_wrong_f_path(self): |
301 self.log_user() | 300 self.log_user() |
302 rev = '27cd5cce30c96924232dffcd24178a07ffeb5dfc' | 301 rev = '27cd5cce30c96924232dffcd24178a07ffeb5dfc' |
303 f_path = 'vcs/ERRORnodes.py' | 302 f_path = 'vcs/ERRORnodes.py' |
331 revision=rev, | 330 revision=rev, |
332 f_path=f_path)) | 331 f_path=f_path)) |
333 msg = """Revision %r does not exist for this repository""" % (rev) | 332 msg = """Revision %r does not exist for this repository""" % (rev) |
334 self.checkSessionFlash(response, msg) | 333 self.checkSessionFlash(response, msg) |
335 | 334 |
336 msg = """%s""" % (HG_REPO) | 335 self.assertEqual('http://localhost/%s/files/tip/' % HG_REPO, response.headers['location']) |
337 self.checkSessionFlash(response, msg) | |
338 | 336 |
339 def test_raw_wrong_f_path(self): | 337 def test_raw_wrong_f_path(self): |
340 self.log_user() | 338 self.log_user() |
341 rev = '27cd5cce30c96924232dffcd24178a07ffeb5dfc' | 339 rev = '27cd5cce30c96924232dffcd24178a07ffeb5dfc' |
342 f_path = 'vcs/ERRORnodes.py' | 340 f_path = 'vcs/ERRORnodes.py' |