Add 4 (failing) tests for legacy search API (issue #49)

Naïve implementation done in this commit will not work:
- pagination is managed another way
- users, repositories and issues do not have the standard format
This commit is contained in:
Vincent Jacques
2012-06-28 22:06:05 +01:00
parent bdad6a4612
commit ed31abe6de
8 changed files with 82 additions and 4 deletions
+3
View File
@@ -332,3 +332,6 @@ class Repository( Framework.TestCase ):
def testGetPullsWithArguments( self ):
self.assertListKeyEqual( self.repo.get_pulls( "closed" ), lambda p: p.id, [ 1448168, 1436310, 1436215 ] )
def testSearchIssues( self ):
self.assertListKeyEqual( self.repo.search_issues( "open", "search" ), lambda i: i.title, [ "Support new Search API" ] )