Exemple #1
0
def test_key_to_seq_invalid_input():
    with pytest.raises(RuntimeError):
        key_to_seq(True)
Exemple #2
0
def test_key_to_seq_multi_input():
    assert key_to_seq(["gg", (11, )]) == (ord("g"), ord("g"), 11)
Exemple #3
0
def test_key_to_seq_standard_input():
    assert key_to_seq([1, 2, 3]) == (1, 2, 3)
    assert key_to_seq((1, 2, 3)) == (1, 2, 3)
Exemple #4
0
def test_key_to_seq_str_input():
    assert key_to_seq("abc") == (ord("a"), ord("b"), ord("c"))