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

Last updated: December 24,2024

1. Install "python-mock" package

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

$ sudo apt update $ sudo apt install python-mock

2. Uninstall "python-mock" package

This guide let you learn how to uninstall python-mock on Ubuntu 16.04 LTS (Xenial Xerus):

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

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

Package: python-mock
Priority: extra
Section: python
Installed-Size: 288
Maintainer: Ubuntu Developers
Original-Maintainer: Debian Python Modules Team
Architecture: all
Version: 1.3.0-2.1ubuntu1
Depends: python-funcsigs, python-pbr, python-six, python:any (<< 2.8), python:any (>= 2.7.5-5~)
Suggests: python-mock-doc
Filename: pool/main/p/python-mock/python-mock_1.3.0-2.1ubuntu1_all.deb
Size: 46466
MD5sum: d959f139550efa4cb32bbb7bd9a29173
SHA1: 136403cd91fffb20a9c7d86a3af99accfcf5f1a3
SHA256: 6f550d75f7a251253772acb775eca748548f74b73e40105789a8639d3d12770e
Description-en: Mocking and Testing Library
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.
Description-md5: 574e60a9a54d2e566a980b7be2daf1a8
Homepage: http://www.voidspace.org.uk/python/mock/
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Origin: Ubuntu
Supported: 5y