@with_save
def status(**kwargs):
    defaults = dict(content='This is a status update.',
                    content_html='This is a status update.')
    defaults.update(kwargs)

    if 'user' not in kwargs and 'user_id' not in kwargs:
        defaults['user'] = user(save=True)

    if 'project' not in kwargs and 'project_id' not in kwargs:
        defaults['project'] = project(save=True)

    return Status(**defaults)
Get the CPU information.
dataset/ETHPy150Open mozilla/standup/standup/tests/__init__.py/status--crossover with--dataset/ETHPy150Open BU-NU-CLOUD-SP16/Trusted-Platform-Module-nova/nova/virt/hyperv/hostops.py/HostOps._get_cpu_info