Skip to content

Commit f2f0cdf

Browse files
committed
Added simple Github.project_for_user_repo test.
1 parent 9358f8b commit f2f0cdf

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

tests/test_unit.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
import sys
66
import unittest
77

8+
from nose.tools import assert_equals
9+
810
from github2.issues import Issue
911
from github2.client import Github
1012

@@ -49,3 +51,9 @@ def test_delays(self):
4951
self.assertTrue(delta_seconds >= 2,
5052
"Expected .5 reqs per second to require a 2 second delay between "
5153
"calls.")
54+
55+
56+
def test_project_for_user_repo():
57+
client = Github()
58+
assert_equals(client.project_for_user_repo('JNRowe', 'misc-overlay'),
59+
'JNRowe/misc-overlay')

0 commit comments

Comments
 (0)