U +¥Mb™ã@sDdZddlZddlZddlmZdd„Zdd„Zdd „Zd d „ZdS) z%Common functions for SelfTest moduleséN)ÚbcCst ¡ |¡S)zReturn a list of TestCase instances given a TestCase class This is useful when you have defined test* methods on your TestCase class. )ÚunittestZ TestLoaderZloadTestsFromTestCase)Úclass_©rú@/tmp/pip-target-t616c12r/lib/python/Crypto/SelfTest/st_common.pyÚlist_test_cases srcCs2t|tƒrtd | ¡¡ƒStdƒ | ¡¡SdS)z,Remove whitespace from a text or byte stringÚN)Ú isinstanceÚstrrÚjoinÚsplit©ÚsrrrÚstrip_whitespace's rcCst t|ƒ¡S)z2Convert hexadecimal to binary, ignoring whitespace)ÚbinasciiÚa2b_hexrr rrrr.srcCs t |¡S)zConvert binary to hexadecimal)rÚb2a_hexr rrrr2sr) Ú__doc__rrZCrypto.Util.py3compatrrrrrrrrrÚs