def test_many_keys(): assert keys(x=1, y=(2, 3), z=True, abc="abcdef", ghi=keys(x=2)) == [ Key('x'), 1, Key('y'), (2, 3), Key('z'), True, Key('abc'), "abcdef", Key('ghi'), [Key('x'), 2], ]
def test_one_key(): assert keys(x=1) == [Key('x'), 1] assert keys(xyz="123") == [Key('xyz'), "123"]
def test_empty_keys(): assert keys() == []