def test_threads(self):
        with patch.dict(sysbench.__salt__,
                        {'cmd.run': MagicMock(return_value={'A': 'a'})}):
            with patch.object(sysbench, '_parser', return_value={'A': 'a'}):
                self.assertEqual(sysbench.threads(),
                                 {'Yields: 500 Locks: 8': {'A': 'a'},
                                  'Yields: 200 Locks: 4': {'A': 'a'},
                                  'Yields: 1000 Locks: 16': {'A': 'a'},
                                  'Yields: 100 Locks: 2': {'A': 'a'}})
Find battery info.
dataset/ETHPy150Open saltstack/salt/tests/unit/modules/sysbench_test.py/SysbenchTestCase.test_threads--crossover with--dataset/ETHPy150Open google/simian/src/simian/mac/common/hw.py/SystemProfile._FindBatteryInfo