Your IP : 216.73.216.213


Current Path : /opt/alt/python35/lib64/python3.5/site-packages/coverage/__pycache__/
Upload File :
Current File : //opt/alt/python35/lib64/python3.5/site-packages/coverage/__pycache__/backunittest.cpython-35.pyc



E�W��@s`dZyddlZWnek
r6ddlZYnXdd�ZGdd�dej�ZdS)z5Implementations of unittest features from the future.�NcCsttj|�S)z/Does `unittest.TestCase` have `method` defined?)�hasattr�unittest�TestCase)�method�r�H/opt/alt/python35/lib64/python3.5/site-packages/coverage/backunittest.py�unittest_hassrc@sReZdZdZdd�Zed�s6dd�Zed�sNdd	�Zd
S)rz�Just like unittest.TestCase, but with assert methods added.

    Designed to be compatible with 3.1 unittest.  Methods are only defined if
    `unittest` doesn't have them.

    cCs |jt|�t|��dS)z9Assert these have the same elements, regardless of order.N)ZassertEqual�sorted)�self�s1�s2rrr�assertCountEqual szTestCase.assertCountEqual�assertRaisesRegexcOs|j||�S)N)ZassertRaisesRegexp)r
�args�kwargsrrrr%szTestCase.assertRaisesRegex�assertRegexcOs|j||�S)N)ZassertRegexpMatches)r
rrrrrr)szTestCase.assertRegexN)�__name__�
__module__�__qualname__�__doc__r
rrrrrrrrsr)rZ	unittest2r�ImportErrorrrrrrr�<module>s