def METHOD_NAME(self, mock_import_module):
    self.sat = Sat()
    self.solver = MagicMock()
    self.transaction = Mock()
    self.transaction.newpackages = Mock(
        return_value=[Mock()]
    )
    self.selection = Mock()
    self.solver.transaction = Mock(
        return_value=self.transaction
    )
    self.sat.pool.Solver = Mock(
        return_value=self.solver
    )
    self.sat.pool.select = Mock(
        return_value=self.selection
    )
    mock_import_module.assert_called_once_with('solv')
    self.solv = mock_import_module.return_value
    self.sat.pool.setarch.assert_called_once_with()
    self.sat.pool.setarch.reset_mock()