ff>dZddlZddlZddlmZdZdZdZdZdS)z%Common functions for SelfTest modulesN)bcNtj|S)zReturn a list of TestCase instances given a TestCase class This is useful when you have defined test* methods on your TestCase class. )unittest TestLoaderloadTestsFromTestCase)class_s {/builddir/build/BUILD/imunify360-venv-2.3.5/opt/imunify360/venv/lib64/python3.11/site-packages/Crypto/SelfTest/st_common.pylist_test_casesr s!   6 6v > >>ct|tr4td|Std|S)z,Remove whitespace from a text or byte string) isinstancestrrjoinsplitss r strip_whitespacer'sV!C%##$$$uuzz!''))$$$r cDtjt|S)z2Convert hexadecimal to binary, ignoring whitespace)binasciia2b_hexrrs r rr.s  ,Q// 0 00r c*tj|S)zConvert binary to hexadecimal)rb2a_hexrs r rr2s  A  r ) __doc__rrCrypto.Util.py3compatrr rrrr r rsw2,+######???%%%111r