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