class_docstr: Fixture that provides the same interface to functions in the mock module,
  ensuring that they are uninstalled at the end of each test.
class_docstr_tok: ["Fixture","that","provides","the","same","interface","to","functions","in","the","mock","module",",","ensuring","that","they","are","uninstalled","at","the","end","of","each","test","."]
code: def __init__(self, config):
      self._patches = []  # list of mock._patch objects
      self._mocks = []  # list of MagicMock objects
      self.mock_module = mock_module = _get_mock_module(config)
      self.patch = self._Patcher(
          self._patches, self._mocks, mock_module
      )
      # aliases for convenience
      self.Mock = mock_module.Mock
      self.MagicMock = mock_module.MagicMock
      self.NonCallableMock = mock_module.NonCallableMock
      self.PropertyMock = mock_module.PropertyMock
      self.call = mock_module.call
      self.ANY = mock_module.ANY
      self.DEFAULT = mock_module.DEFAULT
      self.create_autospec = mock_module.create_autospec
      self.sentinel = mock_module.sentinel
      self.mock_open = mock_module.mock_open
  
imports: from __future__ import unicode_literals
  import functools
  import inspect
  import sys
  import pytest
  import six
  from ._version import version
label_desc: Use image node_id 1 to create a new MockFixture object from inherited base classes: object with example: obj = MockFixture(config)