| 1 | # Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. |
| 2 | # SPDX-License-Identifier: Apache-2.0. |
| 3 | |
| 4 | from test import NativeResourceTest |
| 5 | from awscrt.common import * |
| 6 | |
| 7 | |
| 8 | class TestSystemInfo(NativeResourceTest): |
| 9 | def test_get_cpu_group_count(self): |
| 10 | self.assertGreater(get_cpu_group_count(), 0) |
| 11 | |
| 12 | def test_get_cpu_count_for_group(self): |
| 13 | group_count = get_cpu_group_count() |
| 14 | for group_i in range(group_count): |
| 15 | self.assertGreater(get_cpu_count_for_group(group_i), 0) |