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