示例#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'))
示例#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'))
示例#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"))