コード例 #1
0
 def test_is_post(self):
     with application.test_request_context('/v2/apps/',
                                           method='POST',
                                           data=b'') as ctx:
         request_parser = Request(ctx.request)
         self.assertTrue(request_parser.is_post())
コード例 #2
0
 def test_is_post(self):
     with application.test_request_context("/v2/apps/",
                                           method="POST",
                                           data=b"") as ctx:
         request_parser = Request(ctx.request)
         self.assertTrue(request_parser.is_post())