def test_keyval(): ctx = Qit() kv = KeyValue(Int() * Int(), Int()) assert ctx.run(kv.key_fn(kv.value(((22, 33), 11)))) == (22, 33) assert ctx.run(kv.value_fn(kv.value(((22, 33), 11)))) == 11