|
103 | 103 | 'name':'Foo Bar','password':'foobar_password'})
|
104 | 104 |
|
105 | 105 | assertgl.users.list(search='foobar')[0].id==foobar_user.id
|
106 |
| -usercmp=lambdax,y:cmp(x.id,y.id) |
107 |
| -expected=sorted([new_user,foobar_user],cmp=usercmp) |
108 |
| -actual=sorted(list(gl.users.list(search='foo')),cmp=usercmp) |
| 106 | +expected= [new_user,foobar_user] |
| 107 | +actual=list(gl.users.list(search='foo')) |
109 | 108 | assertlen(expected)==len(actual)
|
110 | 109 | assertlen(gl.users.list(search='asdf'))==0
|
111 | 110 | foobar_user.bio='This is the user bio'
|
|
337 | 336 | 'content':'Initial content',
|
338 | 337 | 'commit_message':'Initial commit'})
|
339 | 338 | readme=admin_project.files.get(file_path='README',ref='master')
|
340 |
| -readme.content=base64.b64encode("Improved README") |
| 339 | +readme.content=base64.b64encode(b"Improved README") |
341 | 340 | time.sleep(2)
|
342 | 341 | readme.save(branch="master",commit_message="new commit")
|
343 | 342 | readme.delete(commit_message="Removing README",branch="master")
|
|