OwlCyberSecurity - MANAGER
Edit File: test_contracts.cpython-312.pyc
� ȓ�g�. � � � d Z ddlZddlZddlZddlmZ ddlmZ ddlmZ ddlmZ ddlmZ ddlm Z dd lm Z dd lmZ ddlmZ ddl mZ dd l mZ ddl mZ ddl mZ ddl mZ ddl mZ ddl mZ ddl mZ ddl mZ ddl mZ ddl mZ ddl mZ G d� de� Z G d� de� Z G d� de� Z G d� de� Z G d � d!e� Zy)"z�Contracts tests. These tests mainly check API sanity in terms of returned types and APIs availability. Some of these are duplicates of tests test_system.py and test_process.py. � N)�AIX)�FREEBSD)�LINUX)�MACOS)�NETBSD)�OPENBSD)�POSIX)�SUNOS)�WINDOWS)�GITHUB_ACTIONS)�HAS_CPU_FREQ)�HAS_NET_IO_COUNTERS)�HAS_SENSORS_FANS)�HAS_SENSORS_TEMPERATURES)�SKIP_SYSCONS)�PsutilTestCase)�create_sockets)�enum)� is_namedtuple)�kernel_version)�pytestc �r � e Zd Zd� Zd� Zd� Zd� Zej j e xr ed�� d� � Zy) �TestAvailConstantsAPIsc �V � t t d� t xs t xs t k( sJ �y )N�PROCFS_PATH)�hasattr�psutilr r r ��selfs �L/opt/hc_python/lib64/python3.12/site-packages/psutil/tests/test_contracts.py�test_PROCFS_PATHz'TestAvailConstantsAPIs.test_PROCFS_PATH0 s! � ��v�}�-�%�2G�5�2G�C�H�H�H� c �` � | j } |t t d� t � |t t d� t � |t t d� t � |t t d� t � |t t d� t � |t t d� t � y )N�ABOVE_NORMAL_PRIORITY_CLASS�BELOW_NORMAL_PRIORITY_CLASS�HIGH_PRIORITY_CLASS�IDLE_PRIORITY_CLASS�NORMAL_PRIORITY_CLASS�REALTIME_PRIORITY_CLASS��assertEqualr r r �r �aes r �test_win_priorityz(TestAvailConstantsAPIs.test_win_priority3 sy � � � � �� �7�6�8�9�7�C� �7�6�8�9�7�C� �7�6�0�1�7�;� �7�6�0�1�7�;� �7�6�2�3�W�=� �7�6�4�5�w�?r"