Add parameters to url

This commit is contained in:
Vincent Jacques
2012-02-18 04:49:10 +00:00
parent 1f43877343
commit 1fca77ac52
2 changed files with 7 additions and 0 deletions
+4
View File
@@ -45,4 +45,8 @@ class TestCase( unittest.TestCase ):
with self.assertRaises( UnknownGithubObject ):
self.r._dataRequest( "GET", "/test", None, None )
def testDataWithParametersAndData( self ):
self.expect( "GET", "/test?tata=tutu&toto=titi", '{"xxx": 42}', 200, [], '{ "foo": "bar" }' )
self.assertEqual( self.r._dataRequest( "GET", "/test", { "toto" : "titi", "tata" : "tutu" }, { "xxx" : 42 } ), { "foo" : "bar" } )
unittest.main()