def test_given_node_lang_packager_with_bad_zippath_when_upload_then_exception(
         self):
     packager = lambda_code_packager.NodeLambdaPackageValidator(
         self.context, self.TEST_FUNCTION_NAME)
     self.assertRaises(errors.HandledError,
                       packager.upload,
                       uploader=self.uploader)
    def test_given_node_lang_packager_with_invalid_code_path_when_validate_then_pass(
            self):
        make_os_path_patcher([False])

        packager = lambda_code_packager.NodeLambdaPackageValidator(
            self.context, self.TEST_FUNCTION_NAME)
        self.assertFalse(
            packager.validate_package(additional_info=self.additional_info))