def test_index_subs(): assert index_subs(tuple("ij"), {"i": "j", "j": "i"}) == tuple("ji")
def test_index_subs(): assert index_subs(tuple('ij'), {'i': 'j', 'j': 'i'}) == tuple('ji')