File size: 616 Bytes
ab322ec | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | """Canonical package name is palimpseste; palimseste stays as alias."""
from __future__ import annotations
def test_both_names_import_same_hv():
import palimseste
import palimpseste
from palimseste.hv import bind as bind_old
from palimpseste.hv import bind as bind_new
assert bind_old is bind_new
assert palimpseste.HV is palimseste.HV
assert palimpseste.__version__ == palimseste.__version__
def test_submodule_alias():
import palimpseste.capacity as cap_new
import palimseste.capacity as cap_old
assert cap_new.kstar_exact(20_000) == cap_old.kstar_exact(20_000) == 400
|