How to Install and Uninstall python-hamcrest Package on Ubuntu 16.04 LTS (Xenial Xerus)

Last updated: October 05,2024

1. Install "python-hamcrest" package

This guide let you learn how to install python-hamcrest on Ubuntu 16.04 LTS (Xenial Xerus)

$ sudo apt update $ sudo apt install python-hamcrest

2. Uninstall "python-hamcrest" package

Please follow the step by step instructions below to uninstall python-hamcrest on Ubuntu 16.04 LTS (Xenial Xerus):

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

3. Information about the python-hamcrest package on Ubuntu 16.04 LTS (Xenial Xerus)

Package: python-hamcrest
Priority: optional
Section: universe/python
Installed-Size: 184
Maintainer: Ubuntu Developers
Original-Maintainer: David Villa Alises
Architecture: all
Source: pyhamcrest
Version: 1.8.0-1
Depends: python (>= 2.7), python (<< 2.8), python:any (>= 2.7.1-0ubuntu2), python-pkg-resources
Filename: pool/universe/p/pyhamcrest/python-hamcrest_1.8.0-1_all.deb
Size: 23722
MD5sum: 23f4e401bb3b3968586d8b633bfe8fb3
SHA1: 89c7a15ef6cd382e5692ff83cef7ae3eded45533
SHA256: d18acbd7df9687184dc11f89fed0c7cab9bbeef04814e2867af776f925c31da6
Description-en: Hamcrest framework for matcher objects (Python 2)
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
Description-md5: c11c720df05f10099351b9abade797f3
Homepage: http://code.google.com/p/hamcrest
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Origin: Ubuntu