Beispiel #1
0
def test_padded_key():
    assert padded_key('b', 'ab') == 'ba'
    raises(ValueError, lambda: padded_key('ab', 'ace'))
    raises(ValueError, lambda: padded_key('ab', 'abba'))
Beispiel #2
0
def test_padded_key():
    assert padded_key('b', 'ab') == 'ba'
    raises(ValueError, lambda: padded_key('ab', 'ace'))
    raises(ValueError, lambda: padded_key('ab', 'abba'))
Beispiel #3
0
def test_padded_key():
    assert padded_key("b", "ab") == "ba"
    raises(ValueError, lambda: padded_key("ab", "ace"))
    raises(ValueError, lambda: padded_key("ab", "abba"))