Your IP : 216.73.216.213
B
��\� � @ s� d Z ddlZddlZddlZddlZej�ej�Ze� d�fdd�Z
dd� Zdd � Zd
d� Z
e�ejde
� ej�ejed
d� � dS )zHooks for nose library.� Nz([A-Z])c C s |� dd� | �S )Nc S s d| � � d �� S )N�_r )�groups�lower)�m� r �I/opt/alt/python37/lib/python3.7/site-packages/astroid/brain/brain_nose.py�<lambda> � z_pep8.<locals>.<lambda>)�sub)�nameZcapsr r r �_pep8 s r c c s� t �t�d��} yt| d �� �}W n tjk
r: dS X x^|�� D ]R}|j �
d�r|d|j kr|t|j �}|t�||�fV |j dkrFdt�||�fV qFW dS )z+Get an iterator of names and bound methods.zY
import unittest
class Test(unittest.TestCase):
pass
a = Test()
�aN�assertr ZassertEqualZ
assert_equals)
�_BUILDER�string_build�textwrap�dedent�nextZinfer�astroidZInferenceError�methodsr �
startswithr ZBoundMethod)�moduleZcase�method� pep8_namer r r �_nose_tools_functions s
r c C s$ xt � D ]\}}|g| j|<