

def _account_for_test(config=None, db=None):
    from tinymail.account import Account
    if (config is None):
        config = {
            'name': 'my test account',
            'host': 'test_host',
            'login_name': 'test_username',
            'login_pass': 'test_password',
        }
    if (db is None):
        db = MagicMock()
    return Account(config, config)

dataset/ETHPy150Open mgax/tinymail/src/tinymail/tests/test_account.py _account_for_test/VarMisuse@80/118 `db`->`config`