From 0ac568b4611f0c0ce1c0ee03c2638573ff563b40 Mon Sep 17 00:00:00 2001 From: Vincent Jacques Date: Sat, 25 Feb 2012 16:42:42 +0000 Subject: [PATCH] Restore unit tests --- github/Requester.UnitTest.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/github/Requester.UnitTest.py b/github/Requester.UnitTest.py index b0eb78c2..92fa200f 100644 --- a/github/Requester.UnitTest.py +++ b/github/Requester.UnitTest.py @@ -50,8 +50,8 @@ class TestCase( unittest.TestCase ): self.assertEqual( self.r.dataRequest( "GET", "/test", { "toto" : "titi", "tata" : "tutu" }, { "xxx" : 42 } ), { "foo" : "bar" } ) def testPagination( self ): - self.expect( "GET", "/test", 'null', 200, [ ( "link", "xxx; next, xxx; last" ) ], '[ 1, 2 ]' ) - self.expect( "GET", "/test?page=2", 'null', 200, [ ( "link", "xxx; prev, xxx; first, xxx; next, xxx; last" ) ], '[ 3, 4 ]' ) + self.expect( "GET", "/test", 'null', 200, [ ( "link", "; next, xxx; last" ) ], '[ 1, 2 ]' ) + self.expect( "GET", "/test?page=2", 'null', 200, [ ( "link", "xxx; prev, xxx; first, ; next, xxx; last" ) ], '[ 3, 4 ]' ) self.expect( "GET", "/test?page=3", 'null', 200, [ ( "link", "xxx; prev, xxx; first" ) ], '[ 5, 6 ]' ) self.assertEqual( self.r.dataRequest( "GET", "/test", None, None ), [ 1, 2, 3, 4, 5, 6 ] )