2222 import unittest
2323except ImportError :
2424 import unittest2 as unittest
25- import json
2625
2726from httmock import HTTMock # noqa
2827from httmock import response # noqa
@@ -184,16 +183,16 @@ def test_list_next_link(self):
184183 path = '/api/v3/projects/1/repository/branches' , method = "get" ,
185184 query = r'per_page=1' )
186185 def resp_one (url , request ):
187- """
188- First request:
186+ """First request:
187+
189188 http://localhost/api/v3/projects/1/repository/branches?per_page=1
190189 """
191190 headers = {
192191 'content-type' : 'application/json' ,
193- 'link' : '<http://localhost/api/v3/projects/1/repository/branc' \
194- 'hes?page=2&per_page=0>; rel="next", <http://localhost/api/v3' \
195- '/projects/1/repository/branches?page=2&per_page=0>; rel="las' \
196- 't", <http://localhost/api/v3/projects/1/repository/branches?' \
192+ 'link' : '<http://localhost/api/v3/projects/1/repository/branc'
193+ 'hes?page=2&per_page=0>; rel="next", <http://localhost/api/v3'
194+ '/projects/1/repository/branches?page=2&per_page=0>; rel="las'
195+ 't", <http://localhost/api/v3/projects/1/repository/branches?'
197196 'page=1&per_page=0>; rel="first"'
198197 }
199198 content = ('[{"branch_name": "otherbranch", '
@@ -207,10 +206,10 @@ def resp_one(url, request):
207206 def resp_two (url , request ):
208207 headers = {
209208 'content-type' : 'application/json' ,
210- 'link' : '<http://localhost/api/v3/projects/1/repository/branc' \
211- 'hes?page=1&per_page=0>; rel="prev", <http://localhost/api/v3' \
212- '/projects/1/repository/branches?page=2&per_page=0>; rel="las' \
213- 't", <http://localhost/api/v3/projects/1/repository/branches?' \
209+ 'link' : '<http://localhost/api/v3/projects/1/repository/branc'
210+ 'hes?page=1&per_page=0>; rel="prev", <http://localhost/api/v3'
211+ '/projects/1/repository/branches?page=2&per_page=0>; rel="las'
212+ 't", <http://localhost/api/v3/projects/1/repository/branches?'
214213 'page=1&per_page=0>; rel="first"'
215214 }
216215 content = ('[{"branch_name": "testbranch", '
0 commit comments