The mocked vault is an instance of unittest.mock.Mock, which is based on the specification of the real Contracts API Vault object. Therefore, only supported vault functions with correct arguments can be mocked. Unit tests will fail if an invalid function or incorrect arguments are passed.