
    ^h                     :    S SK Jr  S SKJr  S SKr " S S\5      rg)    )TestCase)
TraitErrorNc                   ,    \ rS rSrS rS rS rS rSrg)TestBox   c                 `    [         R                  " 5       nUR                  5       S   / :X  d   eg )NchildrenwidgetsBox	get_stateselfboxs     b/home/james-whalen/.local/lib/python3.13/site-packages/ipywidgets/widgets/tests/test_widget_box.pytest_constructionTestBox.test_construction   s&    kkm}}z*b000    c                 :   [         R                  " S5      n[         R                  " 5       n[         R                  " X/5      nUR	                  5       S   nU[         R
                  R                  US 5      [         R
                  R                  US 5      /:X  d   eg )Nz	some htmlr	   )r   HTML	IntSliderr   r   widget_widget_to_json)r   htmlsliderr   children_states        r   test_construction_with_children'TestBox.test_construction_with_children   s}    ||K(""$kk4.)4NN**46NN**648"
 
 	
 
r   c                 ^    [         R                  " SS9nUR                  5       S   S:X  d   eg )Nwarning	box_styler"   r
   r   s     r   test_construction_styleTestBox.test_construction_style   s)    kkI.}}{+y888r   c                     U R                  [        5         [        R                  " SS9  S S S 5        g ! , (       d  f       g = f)Ninvalidr!   )assertRaisesr   r   r   )r   s    r   test_construction_invalid_style'TestBox.test_construction_invalid_style   s(    z*KK), +**s	   4
A N)	__name__
__module____qualname____firstlineno__r   r   r#   r(   __static_attributes__r*   r   r   r   r      s    1
9-r   r   )unittestr   	traitletsr   
ipywidgetsr   r   r*   r   r   <module>r3      s       -h -r   