'Setup things to be run when tests are started.'

def setUp(self):

    self.hass = get_test_home_assistant()
    _base_mock = MagicMock()
    pykira = _base_mock.pykira
    pykira.__file__ = 'test'
    self._module_patcher = patch.dict('sys.modules', {'pykira': pykira})
    self._module_patcher.start()
    self.work_dir = tempfile.mkdtemp()
