class_docstr: Interface to input(...) to enable unit test mocks to be created
class_docstr_tok: ["Interface","to","input","(","...",")","to","enable","unit","test","mocks","to","be","created"]
code: def continue_maybe(self, prompt):
      while True:
          result = input("\n%s (y/n): " % prompt)
          if result.lower() == "y":
              return
          elif result.lower() == "n":
              self.fail("Okay, exiting")
          else:
              prompt = "Please input 'y' or 'n'"
  
imports: import configparser
  import os
  import pprint
  import re
  import subprocess
  import sys
  import requests
  import getpass
  from six.moves import input
  import six
label_desc: Use image node_id 4 for calling the CommandInput obj's underlying member method code with example usage: obj.continue_maybe(prompt) without return types