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

Function test_package_equality

python-alpm/tests/srcinfo/test_package.py:573–581  ·  view source on GitHub ↗

Test Package equality comparison.

()

Source from the content-addressed store, hash-verified

571
572
573def test_package_equality() -> None:
574 """Test Package equality comparison."""
575 package1 = Package("test-package")
576 package2 = Package("test-package")
577 package3 = Package("different-package")
578
579 assert package1 == package2
580 assert package1 != package3
581 assert package1 != "test-package" # type: ignore[comparison-overlap]
582
583
584@pytest.mark.parametrize(

Callers

nothing calls this directly

Calls 1

PackageClass · 0.90

Tested by

no test coverage detected