def test_lscpu_output():
    output = lscpu.LsCPU(context_wrap(LSCPU_1))
    assert (output.info['Architecture'] == 'x86_64')
    assert (len(output.info) == 22)
    assert (output.info['CPUs'] == '2')
    assert (output.info['Threads per core'] == '2')
    assert (output.info['Cores per socket'] == '1')
    assert (output.info['Sockets'] == '1')
    output = lscpu.LsCPU(context_wrap(LSCPU_2))
    assert (output.info['Architecture'] == 'x86_64')
    assert (output.info['CPUs'] == '2')
    assert (output.info['On-line CPUs list'] == '0')
    assert (output.info['Off-line CPUs list'] == '1')
    assert (output.info['Cores per socket'] == '1')
    assert (output.info['Sockets'] == '1')
def test_lscpu_output():
    output = lscpu.LsCPU(context_wrap(LSCPU_1))
    assert (output.info['Architecture'] == 'x86_64')
    assert (len(output.info) == 22)
    assert (output.info['CPUs'] == '2')
    assert (output.info['Threads per core'] == '2')
    assert (output.info['Cores per socket'] == '1')
    assert (output.info['Sockets'] == '1')
    output = lscpu.LsCPU(context_wrap(LSCPU_2))
    assert (output.info['Architecture'] == 'x86_64')
    assert (output.info['CPUs'] == '2')
    assert (output.info['On-line CPUs list'] == '0')
    assert (output.info['Off-line CPUs list'] == '1')
    assert (output.info['Cores per socket'] == '1')
    assert (output.info['Sockets'] == '1')