def setup(self):
     self.output = mock()
     codebreaker(self.output)
def the_secret_code(context, secret):
    context.output = mock()
    context.cb = codebreaker_lib.codebreaker(context.output)
    context.cb.start(secret)
 def setup(self):
     self.output = mock()
     self.cb = codebreaker(self.output)
     self.cb.start("1234")
    def __init__(self, input=sys.stdin, output=output_cli.OutputCli(sys.stdout)):
        self.input = input
        self.output = output
        self.isPlaying=False

        self.cb = codebreaker(self.output)