コード例 #1
0
 def setup(self):
     self.output = mock()
     codebreaker(self.output)
コード例 #2
0
def the_secret_code(context, secret):
    context.output = mock()
    context.cb = codebreaker_lib.codebreaker(context.output)
    context.cb.start(secret)
コード例 #3
0
 def setup(self):
     self.output = mock()
     self.cb = codebreaker(self.output)
     self.cb.start("1234")
コード例 #4
0
    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)