How to Install and Uninstall python3-mock Package on Ubuntu 16.04 LTS (Xenial Xerus)

Last updated: May 16,2024

1. Install "python3-mock" package

Please follow the guidance below to install python3-mock on Ubuntu 16.04 LTS (Xenial Xerus)

$ sudo apt update $ sudo apt install python3-mock

2. Uninstall "python3-mock" package

Please follow the guidance below to uninstall python3-mock on Ubuntu 16.04 LTS (Xenial Xerus):

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

3. Information about the python3-mock package on Ubuntu 16.04 LTS (Xenial Xerus)

Package: python3-mock
Priority: extra
Section: universe/python
Installed-Size: 288
Maintainer: Ubuntu Developers
Original-Maintainer: Debian Python Modules Team
Architecture: all
Source: python-mock
Version: 1.3.0-2.1ubuntu1
Depends: python3-funcsigs, python3-pbr, python3-six, python3:any (>= 3.3.2-2~)
Suggests: python-mock-doc
Filename: pool/universe/p/python-mock/python3-mock_1.3.0-2.1ubuntu1_all.deb
Size: 46602
MD5sum: f6e985c1541ba436ef81327ccbbd1650
SHA1: fe967cfc4db34fa4c9d0de617e1371d1edd4e7ae
SHA256: b08b0ededf9bcb4acfe308e584fd3a69632638f2a2bcd2be902a6b73fdb9ee3e
Description-en: Mocking and Testing Library (Python3 version)
mock provides a core mock.Mock class that is intended to reduce the
need to create a host of trivial stubs throughout your test suite.
After performing an action, you can make assertions about which methods
/ attributes were used and arguments they were called with. You can
also specify return values and set specific attributes in the normal
way.
.
This package contains the Python 3 version of the library.
Description-md5: 4e0c3a991e1f0679db23da5bd156bed7
Homepage: http://www.voidspace.org.uk/python/mock/
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Origin: Ubuntu