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
def test_key_bundle_difference_none(): _kb0 = build_key_bundle(key_conf=KEYSPEC_6) _kb1 = KeyBundle() _kb1.extend(_kb0.keys()) assert _kb0.difference(_kb1) == []