0x1949 Team - FAZEMRX - MANAGER
Edit File: test_message.cpython-310.pyc
o ���c� � @ s: d dl Z d dlmZmZ d dlmZ G dd� de j�ZdS )� N)�Constant�Int)�Messagec @ sL e Zd Zdd� Zdd� Zdd� Zdd� Zd d � Zdd� Zd d� Z dd� Z dS )�MessageTestc C s2 t ddt� i�}| �|�ddd��ddd�� dS )z8The L{Message} schema should be very similar to KeyDict.�foo�data� )�typer N�r r �assertEqual�coerce��self�schema� r �H/usr/lib/python3/dist-packages/landscape/message_schemas/test_message.py�test_coerce s �zMessageTest.test_coercec C s t d�}| �|�d�d� dS )zm The L{Constant} schema type recognizes bytestrings that decode to matching strings. �registers registerN)r r r )r �constantr r r �test_coerce_bytes_to_str s z$MessageTest.test_coerce_bytes_to_strc C �, t di �}| �|�ddd��ddd�� dS )z3L{Message} schemas should accept C{timestamp} keys.�barg��Q��?)r � timestampN�r r r r r r r �test_timestamp � �zMessageTest.test_timestampc C r )z-L{Message} schemas should accept C{api} keys.�bazs whatever�r �apiNr r r r r �test_api r zMessageTest.test_apic C s, t di �}| �|�ddd��ddd�� dS )z1L{Message} schemas should accept None for C{api}.r Nr r r r r r � test_api_None&