def assert_bad_request(self, params): me_articles_public_republish_with_header = MeArticlesPublicRepublishWithHeader( params, {}, dynamodb=self.dynamodb, elasticsearch=self.elasticsearch) response = me_articles_public_republish_with_header.main() self.assertEqual(response['statusCode'], 400)
def lambda_handler(event, context): me_articles_public_republish_with_header = MeArticlesPublicRepublishWithHeader( event, context, dynamodb=dynamodb, elasticsearch=elasticsearch) return me_articles_public_republish_with_header.main()