Since this validation is taking place in the extension itself (without going to the server), we directly use prompt.render_failure_message to print failure message and exit with os.EX_DATAERR code 65. Because of this, we can't really use self.assertRaises here.