def METHOD_NAME(self):
    cpu = platform_import(
        platform='linux',
        module_name='cpu',
        whereis_exe=lambda b: b == 'nproc'
    ).instance()
    stub = MockedProcinfo
    target = 'builtins.open'
    with patch(target=target, new=stub):
        sb = stub()
        self.assertEqual(
            cpu.physical, sb.physical
        )