def RotorTest(): r = Rotor("FABECD") print(r.encryptLetter('D') == 'E') print(r.decryptLetter('E') == 'D') r.click() print(r.encryptLetter('D') == 'C') print(r.decryptLetter('E') == 'C')
def RotorClickTest(): r = Rotor("CAB") for i in range(4): r.click() print(str(r)) print(r.decryptLetter(r.encryptLetter('A')) == 'A')