8000 tests pass, no more expect · jfly/github3.py@14a0814 · GitHub
[go: up one dir, main page]

Skip to content

Commit 14a0814

Browse files
committed
tests pass, no more expect
1 parent 84e5871 commit 14a0814

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

tests/test_github.py

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

55

66
class TestGitHub(BaseCase):
@@ -617,15 +617,15 @@ def test_pubsubhubbub(self):
617617
assert self.g.pubsubhubbub(**d) is True
618618
_, kwargs = self.request.call_args
619619

620-
expect('data').is_in(kwargs)
620+
assert 'data' in kwargs
621621
assert body == kwargs['data']
622622
self.mock_assertions()
623623

624624
d['secret'] = 'secret'
625625
body.append(('hub.secret', 'secret'))
626626
assert self.g.pubsubhubbub(**d)
627627
_, kwargs = self.request.call_args
628-
expect('data').is_in(kwargs)
628+
assert 'data' in kwargs
629629
assert body == kwargs['data']
630630
self.mock_assertions()
631631

@@ -899,15 +899,15 @@ def test_pubsubhubbub(self):
899899
d = dict([(k[4:], v) for k, v in body])
900900
assert self.g.pubsubhubbub(**d)
901901
_, kwargs = self.request.call_args
902-
expect('data').is_in(kwargs)
902+
assert 'data' in kwargs
903903
assert body == kwargs['data']
904904
self.mock_assertions()
905905

906906
d['secret'] = 'secret'
907907
body.append(('hub.secret', 'secret'))
908908
assert self.g.pubsubhubbub(**d)
909909
_, kwargs = self.request.call_args
910-
expect('data').is_in(kwargs)
910+
assert 'data' in kwargs
911911
assert body == kwargs['data']
912912
self.mock_assertions()
913913

0 commit comments

Comments
 (0)
0