How to Install and Uninstall python3-hamcrest Package on Ubuntu 21.10 (Impish Indri)

Last updated: May 18,2024

1. Install "python3-hamcrest" package

Please follow the guidelines below to install python3-hamcrest on Ubuntu 21.10 (Impish Indri)

$ sudo apt update $ sudo apt install python3-hamcrest

2. Uninstall "python3-hamcrest" package

Learn how to uninstall python3-hamcrest on Ubuntu 21.10 (Impish Indri):

$ sudo apt remove python3-hamcrest $ sudo apt autoclean && sudo apt autoremove

3. Information about the python3-hamcrest package on Ubuntu 21.10 (Impish Indri)

Package: python3-hamcrest
Architecture: all
Version: 1.9.0-3
Priority: optional
Section: python
Source: pyhamcrest
Origin: Ubuntu
Maintainer: Ubuntu Developers
Original-Maintainer: David Villa Alises
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 156
Depends: python3-pkg-resources, python3-six, python3:any
Filename: pool/main/p/pyhamcrest/python3-hamcrest_1.9.0-3_all.deb
Size: 24852
MD5sum: ad0da8c31906140e046e8c7862083511
SHA1: cfefabe082500aa7a30bc8020e59a9f0ae072374
SHA256: a1ae5bb2c227c02c0ca859c033c227e0d801a26a1df10e45a4692438f15dcd95
SHA512: 34fd75a9de3b4c21f2b842a0f02ff2b487aaa3e9bef87e798481d6522788c5660768ad67db21b96d2e06f16347a378bdf524433fa9e5fd8b47ff4228671d0f93
Homepage: http://hamcrest.org/
Description-en: Hamcrest framework for matcher objects (Python 3)
PyHamcrest is a framework for writing matcher objects, allowing you to
declaratively define "match" rules. There are a number of situations where
matchers are invaluable, such as UI validation, or data filtering, but it is in
the area of writing flexible tests that matchers are most commonly used. This
tutorial shows you how to use PyHamcrest for unit testing.
.
When writing tests it is sometimes difficult to get the balance right between
overspecifying the test (and making it brittle to changes), and not specifying
enough (making the test less valuable since it continues to pass even when the
thing being tested is broken). Having a tool that allows you to pick out
precisely the aspect under test and describe the values it should have, to a
controlled level of precision, helps greatly in writing tests that are
"just right." Such tests fail when the behavior of the aspect under test
deviates from the expected behavior, yet continue to pass when minor,
unrelated changes to the behaviour are made.
.
This package provides the Python 3.x modules.
Description-md5: 1c795fc421cebf67d28bfa0dad9ad800
Task: cloud-image, server, ubuntu-server-raspi