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