def test_unique_keys_1(): _kb0 = build_key_bundle(key_conf=KEYSPEC_6) _kb1 = build_key_bundle(key_conf=KEYSPEC_6) keys = _kb0.keys() keys.extend(_kb1.keys()) # All of them assert len(unique_keys(keys)) == 6
def test_unique_keys_2(): _kb0 = build_key_bundle(key_conf=KEYSPEC_6) _kb1 = KeyBundle() _kb1.extend(_kb0.keys()) keys = _kb0.keys() keys.extend(_kb1.keys()) # 3 of 6 assert len(unique_keys(keys)) == 3