def account1(bucket): push_is_running_service() accounts = Accounts(user_guid=account1_user) account = Account(name="Testing Account", description="This is the test account", group_name=accounts.name(), bucket=bucket) uid = account.uid() assert (uid is not None) assert (account.balance() == Balance()) account.set_overdraft_limit(account1_overdraft_limit) assert (account.get_overdraft_limit() == account1_overdraft_limit) pop_is_running_service() return account
def account1(bucket): if not have_freezetime: return None with freeze_time(start_time) as _frozen_datetime: now = get_datetime_now() assert (start_time == now) push_is_running_service() accounts = Accounts(user_guid=account1_user) account = Account(name="Testing Account", description="This is the test account", group_name=accounts.name()) uid = account.uid() assert (uid is not None) assert (account.balance() == Balance()) account.set_overdraft_limit(account1_overdraft_limit) assert (account.get_overdraft_limit() == account1_overdraft_limit) pop_is_running_service() return account