コード例 #1
0
 def test_prepare_method(self):
     r = Request(url=gh_url)
     self.assertEqual(r.method, 'GET')
     self.assertEqual(r._prepare_method('gEt'), 'GET')
     self.assertEqual(r._prepare_method('post'), 'POST')
     self.assertEqual(r._prepare_method('f.adsf/dsaf,'), 'F.ADSF/DSAF,')
     self.assertIsInstance(r._prepare_method(u'get'), str)