aboutsummaryrefslogtreecommitdiffstats
path: root/pygithub3/tests/services/test_repos.py
diff options
context:
space:
mode:
authorDavid Medina <davidmedina9@gmail.com>2012-06-03 13:02:54 +0200
committerDavid Medina <davidmedina9@gmail.com>2012-06-03 13:02:54 +0200
commit897671db979e64754de2c53cbbe83fcbae37bb02 (patch)
tree11ac9ede303971d2bcaf270d833fd4112c923509 /pygithub3/tests/services/test_repos.py
parentMerge 'services/orgs' (diff)
parentChange "Edit" to "Update" in docstring (diff)
downloadpython-github3-897671db979e64754de2c53cbbe83fcbae37bb02.tar.xz
python-github3-897671db979e64754de2c53cbbe83fcbae37bb02.zip
Merge branch 'services/issues' of https://github.com/alejandrogomez/python-github3 into services/issues
Conflicts: docs/services.rst pygithub3/github.py pygithub3/requests/repos/__init__.py
Diffstat (limited to 'pygithub3/tests/services/test_repos.py')
-rw-r--r--pygithub3/tests/services/test_repos.py12
1 files changed, 12 insertions, 0 deletions
diff --git a/pygithub3/tests/services/test_repos.py b/pygithub3/tests/services/test_repos.py
index e21d474..a07635a 100644
--- a/pygithub3/tests/services/test_repos.py
+++ b/pygithub3/tests/services/test_repos.py
@@ -134,6 +134,18 @@ class TestRepoService(TestCase):
self.assertEqual(request_method.call_args[0],
('get', _('repos/octocat/octocat_repo/branches')))
+ def test_LIST_labels(self, request_method):
+ request_method.return_value = mock_response_result()
+ self.rs.list_labels().all()
+ self.assertEqual(request_method.call_args[0],
+ ('get', _('repos/octocat/octocat_repo/labels')))
+
+ def test_LIST_milestones(self, request_method):
+ request_method.return_value = mock_response_result()
+ self.rs.list_milestones().all()
+ self.assertEqual(request_method.call_args[0],
+ ('get', _('repos/octocat/octocat_repo/milestones')))
+
@patch.object(requests.sessions.Session, 'request')
class TestCollaboratorsService(TestCase):