# Path: hardware/benchmark/mem.py
# def get_available_memory():
# def check_mem_size(block_size, cpu_count):
# def run_sysbench_memory_threaded(hw_lst, max_time, block_size, cpu_count,
#                                  processor_num=None):
# def run_sysbench_memory_forked(hw_lst, max_time, block_size, cpu_count):
# def mem_perf(hw_lst, max_time=5):
# 
# Path: hardware/benchmark/utils.py
# def get_value(hw_lst, level1, level2, level3):
# def get_one_cpu_per_socket(hw_lst):


import subprocess
import unittest
from unittest import mock
from hardware.benchmark import mem
from hardware.benchmark import utils
    ('cpu', 'logical_0', 'bandwidth_1M', '382'),
    ('cpu', 'logical_0', 'bandwidth_16M', '382'),
    ('cpu', 'logical_0', 'bandwidth_128M', '382'),
    ('cpu', 'logical_0', 'bandwidth_1G', '382'),
    ('cpu', 'logical_0', 'bandwidth_2G', '382'),
    ('cpu', 'logical_1', 'bandwidth_1K', '382'),
    ('cpu', 'logical_1', 'bandwidth_4K', '382'),
    ('cpu', 'logical_1', 'bandwidth_1M', '382'),
    ('cpu', 'logical_1', 'bandwidth_16M', '382'),
    ('cpu', 'logical_1', 'bandwidth_128M', '382'),
    ('cpu', 'logical_1', 'bandwidth_1G', '382'),
    ('cpu', 'logical_1', 'bandwidth_2G', '382'),
    ('cpu', 'logical', 'threaded_bandwidth_1K', '382'),
    ('cpu', 'logical', 'threaded_bandwidth_4K', '382'),
    ('cpu', 'logical', 'threaded_bandwidth_1M', '382'),
    ('cpu', 'logical', 'threaded_bandwidth_16M', '382'),
    ('cpu', 'logical', 'threaded_bandwidth_128M', '382'),
    ('cpu', 'logical', 'threaded_bandwidth_1G', '382'),
    ('cpu', 'logical', 'threaded_bandwidth_2G', '382'),
    ('cpu', 'logical', 'forked_bandwidth_1K', '382'),
    ('cpu', 'logical', 'forked_bandwidth_4K', '382'),
    ('cpu', 'logical', 'forked_bandwidth_1M', '382'),
    ('cpu', 'logical', 'forked_bandwidth_16M', '382'),
    ('cpu', 'logical', 'forked_bandwidth_128M', '382'),
    ('cpu', 'logical', 'forked_bandwidth_1G', '382'),
    ('cpu', 'logical', 'forked_bandwidth_2G', '382')
]


@mock.patch.object(mem, 'get_available_memory')

# Path: hardware/benchmark/mem.py
# def get_available_memory():
# def check_mem_size(block_size, cpu_count):
# def run_sysbench_memory_threaded(hw_lst, max_time, block_size, cpu_count,
#                                  processor_num=None):
# def run_sysbench_memory_forked(hw_lst, max_time, block_size, cpu_count):
# def mem_perf(hw_lst, max_time=5):
# 
# Path: hardware/benchmark/utils.py
# def get_value(hw_lst, level1, level2, level3):
# def get_one_cpu_per_socket(hw_lst):


# Path: hardware/tests/test_benchmark_mem.py
import subprocess
import unittest
from unittest import mock
from hardware.benchmark import mem
from hardware.benchmark import utils

    ('cpu', 'logical_0', 'bandwidth_1M', '382'),
    ('cpu', 'logical_0', 'bandwidth_16M', '382'),
    ('cpu', 'logical_0', 'bandwidth_128M', '382'),
    ('cpu', 'logical_0', 'bandwidth_1G', '382'),
    ('cpu', 'logical_0', 'bandwidth_2G', '382'),
    ('cpu', 'logical_1', 'bandwidth_1K', '382'),
    ('cpu', 'logical_1', 'bandwidth_4K', '382'),
    ('cpu', 'logical_1', 'bandwidth_1M', '382'),
    ('cpu', 'logical_1', 'bandwidth_16M', '382'),
    ('cpu', 'logical_1', 'bandwidth_128M', '382'),
    ('cpu', 'logical_1', 'bandwidth_1G', '382'),
    ('cpu', 'logical_1', 'bandwidth_2G', '382'),
    ('cpu', 'logical', 'threaded_bandwidth_1K', '382'),
    ('cpu', 'logical', 'threaded_bandwidth_4K', '382'),
    ('cpu', 'logical', 'threaded_bandwidth_1M', '382'),
    ('cpu', 'logical', 'threaded_bandwidth_16M', '382'),
    ('cpu', 'logical', 'threaded_bandwidth_128M', '382'),
    ('cpu', 'logical', 'threaded_bandwidth_1G', '382'),
    ('cpu', 'logical', 'threaded_bandwidth_2G', '382'),
    ('cpu', 'logical', 'forked_bandwidth_1K', '382'),
    ('cpu', 'logical', 'forked_bandwidth_4K', '382'),
    ('cpu', 'logical', 'forked_bandwidth_1M', '382'),
    ('cpu', 'logical', 'forked_bandwidth_16M', '382'),
    ('cpu', 'logical', 'forked_bandwidth_128M', '382'),
    ('cpu', 'logical', 'forked_bandwidth_1G', '382'),
    ('cpu', 'logical', 'forked_bandwidth_2G', '382')
]


@mock.patch.object(mem, 'get_available_memory')

@mock.patch.object(utils, 'get_one_cpu_per_socket')