8000 Clean up test · Lukasa/github3.py@528dfaa · GitHub
[go: up one dir, main page]

Skip to content

Commit 528dfaa

Browse files
committed
Clean up test
1 parent 1403061 commit 528dfaa

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

tests/test_issue_authorize_optional_scope.py

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
import github3
2-
from mock import patch, Mock
3-
from tests.utils import (expect, BaseCase, load)
2+
from tests.utils import BaseCase
43

54
"""
6-
http://github3py.readthedocs.org/en/0.7.0/github.html#github3.github.GitHub.authorize says scopes are required.
5+
http://github3py.readthedocs.org/en/0.7.0/github.html#github3.github.GitHub
6+
says scopes are required to create an authorization.
77
8-
http://developer.github.com/v3/oauth/#create-a-new-authorization (at time of writing - 2013-09-06) disagrees
8+
http://developer.github.com/v3/oauth/#create-a-new-authorization (at time of
9+
writing - 2013-09-06) disagrees
910
"""
1011

1112

@@ -20,7 +21,7 @@ def test_authorize_with_scope(self):
2021
self.not_called()
2122

2223
a = self.g.authorize('user', 'password', scopes)
23-
expect(a).isinstance(github3.auths.Authorization)
24+
assert isinstance(a, github3.auths.Authorization)
2425
assert self.request.called is True
2526

2627
self.request.reset_mock()
@@ -35,7 +36,7 @@ def test_authorize_without_scope(self):
3536
self.not_called()
3637

3738
a = self.g.authorize('user', 'password')
38-
expect(a).isinstance(github3.auths.Authorization)
39+
assert isinstance(a, github3.auths.Authorization)
3940
assert self.request.called is True
4041

4142
self.request.reset_mock()

0 commit comments

Comments
 (0)
0