コード例 #1
0
ファイル: url_test.py プロジェクト: TheProjecter/snowforecast
 def testGetRequestUri(self):
   url = atom.url.Url(protocol='http', host='example.com', path='/feed')
   url.params['has spaces'] = 'sneaky=values?&!'
   self.assertTrue(url.get_request_uri() == (
       '/feed?has+spaces=sneaky%3Dvalues%3F%26%21'))
   self.assertTrue(url.get_param_string() == (
       'has+spaces=sneaky%3Dvalues%3F%26%21'))
コード例 #2
0
 def testGetRequestUri(self):
   url = atom.url.Url(protocol='http', host='example.com', path='/feed')
   url.params['has spaces'] = 'sneaky=values?&!'
   self.assert_(url.get_request_uri() == (
       '/feed?has+spaces=sneaky%3Dvalues%3F%26%21'))
   self.assert_(url.get_param_string() == (
       'has+spaces=sneaky%3Dvalues%3F%26%21'))