def METHOD_NAME(self, clear_redis, now, db, default_namespace):
    """Creates transactions, some new and some old.
    Yields the newest transaction
    """
    # Transactions created less than 30 days ago should not be deleted
    t0 = create_transaction(db, now, default_namespace.id)
    create_transaction(db, now - timedelta(days=29), default_namespace.id)
    create_transaction(db, now - timedelta(days=30), default_namespace.id)
    # Transactions older than 30 days should be deleted
    for i in range(10):
        create_transaction(db, now - timedelta(days=31 + i), default_namespace.id)
    return t0