Permalink
Browse files

test_set_subscription

  • Loading branch information...
1 parent 7c172b7 commit b9d0aff296bce79b65a3153cbbbef1c7c1eccaa9 @sigmavirus24 committed Jan 19, 2013
Showing with 13 additions and 1 deletion.
  1. +1 −0 setup.py
  2. +12 −1 tests/test_repos.py
View
@@ -57,6 +57,7 @@
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.2',
+ 'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: Implementation :: CPython',
],
)
View
@@ -837,4 +837,15 @@ def test_remove_collaborator(self):
self.mock_assertions()
def test_set_subscription(self):
- pass
+ self.response('subscription')
+ self.put(self.api + 'subscription')
+ self.conf = {'data': {'subscribed': True, 'ignored': False}}
+
+ with expect.githuberror():
+ self.repo.set_subscription(True, False)
+ self.not_called()
+
+ self.login()
+ s = self.repo.set_subscription(True, False)
+ expect(s).isinstance(github3.notifications.Subscription)
+ self.mock_assertions()

0 comments on commit b9d0aff

Please sign in to comment.