MCPcopy Create free account
hub / github.com/archlinux/alpm / test_package_base_equality

Function test_package_base_equality

python-alpm/tests/srcinfo/test_package_base.py:423–432  ·  view source on GitHub ↗

Test PackageBase equality comparison.

()

Source from the content-addressed store, hash-verified

421
422
423def test_package_base_equality() -> None:
424 """Test PackageBase equality comparison."""
425 version = FullVersion.from_str("1.0.0-1")
426 package_base1 = PackageBase("test-package", version)
427 package_base2 = PackageBase("test-package", version)
428 package_base3 = PackageBase("different-package", version)
429
430 assert package_base1 == package_base2
431 assert package_base1 != package_base3
432 assert package_base1 != "not a package base"
433
434
435def test_package_base_architecture_merge_package_properties() -> None:

Callers

nothing calls this directly

Calls 2

PackageBaseClass · 0.90
from_strMethod · 0.45

Tested by

no test coverage detected