0x1949 Team - FAZEMRX - MANAGER
Edit File: test_rfc1982.cpython-310.pyc
o �b 6 � @ s� d Z ddlZddlmZ ddlmZ ddlmZ ddlmZ G dd� dej �Z d d � Zeedd�ZG d d� dej �Z eedd�ZG dd� dej �ZdS )z* Test cases for L{twisted.names.rfc1982}. � N)�datetime)�partial��SerialNumber)�unittestc @ s� e Zd ZdZdd� Zdd� Zdd� Zdd � Zd d� Zdd � Z dd� Z dd� Zdd� Zdd� Z dd� Zdd� Zdd� Zdd� Zdd� Zd d!� Zd"d#� Zd$d%� Zd&d'� Zd(d)� Zd*d+� Zd,d-� Zd.d/� Zd0d1� Zd2d3� Zd4d5� Zd6d7� Zd8d9� Zd:S );�SerialNumberTestsz$ Tests for L{SerialNumber}. c C s | � td�jd� dS )zB L{SerialNumber.serialBits} has default value 32. � � N��assertEqualr �_serialBits��self� r �A/usr/lib/python3/dist-packages/twisted/names/test/test_rfc1982.py�test_serialBitsDefault s z(SerialNumberTests.test_serialBitsDefaultc C s | � tddd�jd� dS )z� L{SerialNumber.__init__} accepts a C{serialBits} argument whose value is assigned to L{SerialNumber.serialBits}. r � �� serialBitsNr r r r r �test_serialBitsOverride � z)SerialNumberTests.test_serialBitsOverridec C s | � dttddd��� dS )ze L{SerialNumber.__repr__} returns a string containing number and serialBits. z'<SerialNumber number=123 serialBits=32>�{ r r N)r �reprr r r r r � test_repr# s �zSerialNumberTests.test_reprc C s | � ttd��d� dS )zg L{SerialNumber.__str__} returns a string representation of the current value. r �123N)r �strr r r r r �test_str- � zSerialNumberTests.test_strc C s | � ttd��d� dS )zi L{SerialNumber.__int__} returns an integer representation of the current value. r N)r �intr r r r r �test_int4 r zSerialNumberTests.test_intc C s<