Show More
@@ -155,6 +155,19 b' class TestGistsController(TestController' | |||||
155 | response.mustcontain('gist-desc') |
|
155 | response.mustcontain('gist-desc') | |
156 | response.mustcontain('<div class="ui-btn green badge">Public gist</div>') |
|
156 | response.mustcontain('<div class="ui-btn green badge">Public gist</div>') | |
157 |
|
157 | |||
|
158 | def test_show_as_raw(self): | |||
|
159 | gist = _create_gist('gist-show-me', content='GIST CONTENT') | |||
|
160 | response = self.app.get(url('formatted_gist', | |||
|
161 | gist_id=gist.gist_access_id, format='raw')) | |||
|
162 | self.assertEqual(response.body, 'GIST CONTENT') | |||
|
163 | ||||
|
164 | def test_show_as_raw_individual_file(self): | |||
|
165 | gist = _create_gist('gist-show-me-raw', content='GIST BODY') | |||
|
166 | response = self.app.get(url('formatted_gist_file', | |||
|
167 | gist_id=gist.gist_access_id, format='raw', | |||
|
168 | revision='tip', f_path='gist-show-me-raw')) | |||
|
169 | self.assertEqual(response.body, 'GIST BODY') | |||
|
170 | ||||
158 | def test_edit(self): |
|
171 | def test_edit(self): | |
159 | self.skipTest('not implemented') |
|
172 | self.skipTest('not implemented') | |
160 | response = self.app.get(url('edit_gist', gist_id=1)) |
|
173 | response = self.app.get(url('edit_gist', gist_id=1)) |
General Comments 0
You need to be logged in to leave comments.
Login now