Changeset - 4b0d283ecede
[Not reviewed]
beta
0 1 0
Marcin Kuzminski - 12 years ago 2013-05-19 16:14:28
marcin@python-works.com
added tests for raw gists
1 file changed with 13 insertions and 0 deletions:
0 comments (0 inline, 0 general)
rhodecode/tests/functional/test_admin_gists.py
Show inline comments
 
@@ -155,6 +155,19 @@ class TestGistsController(TestController
 
        response.mustcontain('gist-desc')
 
        response.mustcontain('<div class="ui-btn green badge">Public gist</div>')
 

	
 
    def test_show_as_raw(self):
 
        gist = _create_gist('gist-show-me', content='GIST CONTENT')
 
        response = self.app.get(url('formatted_gist',
 
                                    gist_id=gist.gist_access_id, format='raw'))
 
        self.assertEqual(response.body, 'GIST CONTENT')
 

	
 
    def test_show_as_raw_individual_file(self):
 
        gist = _create_gist('gist-show-me-raw', content='GIST BODY')
 
        response = self.app.get(url('formatted_gist_file',
 
                                    gist_id=gist.gist_access_id, format='raw',
 
                                    revision='tip', f_path='gist-show-me-raw'))
 
        self.assertEqual(response.body, 'GIST BODY')
 

	
 
    def test_edit(self):
 
        self.skipTest('not implemented')
 
        response = self.app.get(url('edit_gist', gist_id=1))
0 comments (0 inline, 0 general)