##// END OF EJS Templates
small tests improvements
marcink -
r3849:b4fc29a0 beta
parent child Browse files
Show More
@@ -33,18 +33,18 b' class TestGistsController(TestController'
33 33 # Test response...
34 34 response.mustcontain('There are no gists yet')
35 35
36 _create_gist('gist1')
37 _create_gist('gist2', lifetime=1400)
38 _create_gist('gist3', description='gist3-desc')
39 _create_gist('gist4', gist_type='private')
36 g1 = _create_gist('gist1').gist_access_id
37 g2 = _create_gist('gist2', lifetime=1400).gist_access_id
38 g3 = _create_gist('gist3', description='gist3-desc').gist_access_id
39 g4 = _create_gist('gist4', gist_type='private').gist_access_id
40 40 response = self.app.get(url('gists'))
41 41 # Test response...
42 response.mustcontain('gist:1')
43 response.mustcontain('gist:2')
42 response.mustcontain('gist:%s' % g1)
43 response.mustcontain('gist:%s' % g2)
44 44 response.mustcontain('Expires: in 23 hours') # we don't care about the end
45 response.mustcontain('gist:3')
45 response.mustcontain('gist:%s' % g3)
46 46 response.mustcontain('gist3-desc')
47 response.mustcontain(no=['gist:4'])
47 response.mustcontain(no=['gist:%s' % g4])
48 48
49 49 def test_index_private_gists(self):
50 50 self.log_user()
@@ -459,7 +459,7 b' removed extra unicode conversion in diff'
459 459 repo_name=HG_REPO,
460 460 revision='tip', f_path='/'),
461 461 params={
462 ''
462 'content': ''
463 463 },
464 464 status=302)
465 465
General Comments 0
You need to be logged in to leave comments. Login now