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())
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())