예제 #1
0
def test_turn_rotors_border_value_B():
    list_of_rotors = [1, 26, 1]
    enigma = Enigma(list_of_rotors)
    enigma._turn_rotors()
    assert enigma._alpha == 2
    assert enigma._beta == 26
    assert enigma._gamma == 1
예제 #2
0
def test_turn_rotors_border_value_all_rotors():
    list_of_rotors = [26, 26, 26]
    enigma = Enigma(list_of_rotors)
    enigma._turn_rotors()
    assert enigma._alpha == 1
    assert enigma._beta == 1
    assert enigma._gamma == 1
예제 #3
0
def test_turn_rotors():
    list_of_rotors = [1, 1, 1]
    enigma = Enigma(list_of_rotors)
    enigma._turn_rotors()
    assert enigma._alpha == 2
    assert enigma._beta == 1
    assert enigma._gamma == 1