python (3.12.0)
Αe
d dl Z d dlmZ d dlmZ G d dej
ej e j Ze dk( r e j yy) N)string_tests)
UserStringc : e Zd ZeZd ZdddZd Zd Zd Z d Z
y) UserStringTestc | j | }| j | } t || |i |}| j || y N)fixtypegetattrassertEqual)selfresultobject
methodnameargskwargs
realresults H/BuggyBox/python/3.12.0/bootstrap/lib/python3.12/test/test_userstring.py
checkequalzUserStringTest.checkequal sJ f%f%0WVZ0$A&A
N)expected_msgc * | j | }| j | 5 } t || | d d d | j t j
d |&| j
t |j
| y y # 1 sw Y WxY w)N )r assertRaisesr
assertNotEqualstr exceptionr )r excobjr r r cms r checkraiseszUserStringTest.checkraises s ll3
s
# ,r$GC$d+ ,C-r2#S.= $ , ,s B Bc D | j | } t || | y r )r r
)r r r r s r checkcallzUserStringTest.checkcall'