aboutsummaryrefslogtreecommitdiffstats
path: root/pygithub3/tests
diff options
context:
space:
mode:
authorDavid Medina <davidmedina9@gmail.com>2012-04-03 12:37:18 +0200
committerDavid Medina <davidmedina9@gmail.com>2012-04-03 12:37:18 +0200
commit3a52231c943bc59b1ddc8800f96179cbe0d1523d (patch)
tree7d65ec94eb9cc2d381ac88c07b84a05d0be6bb15 /pygithub3/tests
parentFix bug: Validating body in requests (diff)
downloadpython-github3-3a52231c943bc59b1ddc8800f96179cbe0d1523d.tar.xz
python-github3-3a52231c943bc59b1ddc8800f96179cbe0d1523d.zip
services.gists.Gist done
Diffstat (limited to 'pygithub3/tests')
-rw-r--r--pygithub3/tests/services/test_gists.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/pygithub3/tests/services/test_gists.py b/pygithub3/tests/services/test_gists.py
index af88e1e..66ff537 100644
--- a/pygithub3/tests/services/test_gists.py
+++ b/pygithub3/tests/services/test_gists.py
@@ -34,13 +34,13 @@ class TestGistService(TestCase):
def test_LIST_public(self, request_method):
request_method.return_value = mock_response_result()
- self.gs.list_public().all()
+ self.gs.public().all()
self.assertEqual(request_method.call_args[0],
('get', _('gists/public')))
def test_LIST_starred(self, request_method):
request_method.return_value = mock_response_result()
- self.gs.list_starred.all()
+ self.gs.starred().all()
self.assertEqual(request_method.call_args[0],
('get', _('gists/starred')))
@@ -78,7 +78,7 @@ class TestGistService(TestCase):
request_method.return_value = mock_response()
self.gs.is_starred(1)
self.assertEqual(request_method.call_args[0],
- ('get', _('gists/1/star')))
+ ('head', _('gists/1/star')))
def test_FORK(self, request_method):
request_method.return_value = mock_response('post')