
^Q\                 @   s&   d  d l  m Z m Z d d   Z d S)    )Element
parse_htmlc                s   t  |  t  s t |   }  n  t    t  s< t      n    j |  j k rm t   j  j |  j  rm d St   f d d   |  j D  S)zSearch for a html element with at least the corresponding elements
    (other elements may be present in the matched element from the haystack)
    Tc             3   s-   |  ]# } t  | t  r t |    Vq d  S)N)
isinstancer   contains_partial).0child)needle K/var/www/dbchiro/venv/build/django-crispy-forms/crispy_forms/tests/utils.py	<genexpr>   s    z#contains_partial.<locals>.<genexpr>)	r   r   r   nameset
attributesissubsetanychildren)Zhaystackr   r	   )r   r
   r      s    r   N)Zdjango.test.htmlr   r   r   r	   r	   r	   r
   <module>   s   