a  ze8@sXdZddlZddlZddlZddlmZmZeGdddejZe dkrTe dS)z2Tests for the pdeps script in the Tools directory.N)skip_if_missing import_toolc@s(eZdZeddZddZddZdS) PdepsTestscCstd|_dS)Npdeps)rrselfrN/opt/bitninja-python-dojo/embedded/lib/python3.9/test/test_tools/test_pdeps.py setUpClassszPdepsTests.setUpClassc Cs|t`}tj|d}t|d}|dWdn1sB0Y|j|iWdn1sn0YdS)NZfoowz#!/this/will/fail) tempfileTemporaryDirectoryospathjoinopenwriterprocess)rZtmpdirfnstreamrrr test_process_errorss   (zPdepsTests.test_process_errorscCs|jdgidS)Na)rZinverserrrr test_inverse_attribute_errorsz'PdepsTests.test_inverse_attribute_errorN)__name__ __module__ __qualname__ classmethodr rrrrrr r s r__main__) __doc__rZunittestr Ztest.test_toolsrrZTestCaserrmainrrrr s