ó J(Zc@s®dZdZddlZddlZddlZejddkrcejddkrcddlTnddlTdejfd „ƒYZ d „Z d „Z d „Z d „Z dS(s%Common functions for SelfTest moduless$Id$iÿÿÿÿNiii(t*t_list_testloadercBseZeZRS((t__name__t __module__tlistt suiteClass(((s;/tmp/pip-build-LvEk9W/pycrypto/Crypto/SelfTest/st_common.pyR$scCstƒj|ƒS(sReturn a list of TestCase instances given a TestCase class This is useful when you have defined test* methods on your TestCase class. (RtloadTestsFromTestCase(tclass_((s;/tmp/pip-build-LvEk9W/pycrypto/Crypto/SelfTest/st_common.pytlist_test_cases'scCsEt|tƒr(tdj|jƒƒƒStdƒj|jƒƒSdS(s,Remove whitespace from a text or byte stringtN(t isinstancetstrtbtjointsplit(ts((s;/tmp/pip-build-LvEk9W/pycrypto/Crypto/SelfTest/st_common.pytstrip_whitespace.scCstjt|ƒƒS(s2Convert hexadecimal to binary, ignoring whitespace(tbinasciita2b_hexR(R((s;/tmp/pip-build-LvEk9W/pycrypto/Crypto/SelfTest/st_common.pyR5scCs tj|ƒS(sConvert binary to hexadecimal(Rtb2a_hex(R((s;/tmp/pip-build-LvEk9W/pycrypto/Crypto/SelfTest/st_common.pyR9s(t__doc__t __revision__tunittestRtsyst version_infotCrypto.Util.py21compattCrypto.Util.py3compatt TestLoaderRRRRR(((s;/tmp/pip-build-LvEk9W/pycrypto/Crypto/SelfTest/st_common.pyts   &