| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -103,9 +103,8 @@ | |||
| 103 | 103 | 'name': 'Foo Bar', 'password': 'foobar_password'}) | |
| 104 | 104 | ||
| 105 | 105 | assert gl.users.list(search='foobar')[0].id == foobar_user.id | |
| 106 | - usercmp = lambda x,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 | assert len(expected) == len(actual) | |
| 110 | 109 | assert len(gl.users.list(search='asdf')) == 0 | |
| 111 | 110 | foobar_user.bio = 'This is the user bio' | |
@@ -337,7 +336,7 @@ | |||
| 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") | |
| Back | FazBrowse Home | New Git URL |
0 commit comments