wec@sVdZddlZddlZddlmZdZdZdZdZdS(s%Common functions for SelfTest modulesiN(tbcCstjj|S(sReturn a list of TestCase instances given a TestCase class This is useful when you have defined test* methods on your TestCase class. (tunittestt TestLoadertloadTestsFromTestCase(tclass_((s?/usr/lib64/python2.7/site-packages/Crypto/SelfTest/st_common.pytlist_test_cases scCsEt|tr(tdj|jStdj|jSdS(s,Remove whitespace from a text or byte stringtN(t isinstancetstrRtjointsplit(ts((s?/usr/lib64/python2.7/site-packages/Crypto/SelfTest/st_common.pytstrip_whitespace'scCstjt|S(s2Convert hexadecimal to binary, ignoring whitespace(tbinasciita2b_hexR (R ((s?/usr/lib64/python2.7/site-packages/Crypto/SelfTest/st_common.pyR.scCs tj|S(sConvert binary to hexadecimal(R tb2a_hex(R ((s?/usr/lib64/python2.7/site-packages/Crypto/SelfTest/st_common.pyR2s( t__doc__RR tCrypto.Util.py3compatRRR RR(((s?/usr/lib64/python2.7/site-packages/Crypto/SelfTest/st_common.pyts