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: |
|
42 | response.mustcontain('gist:%s' % g1) | |
43 |
response.mustcontain('gist: |
|
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: |
|
45 | response.mustcontain('gist:%s' % g3) | |
46 | response.mustcontain('gist3-desc') |
|
46 | response.mustcontain('gist3-desc') | |
47 |
response.mustcontain(no=['gist: |
|
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() |
General Comments 0
You need to be logged in to leave comments.
Login now