From bc4c3538cc3174534d305786777ef6d91e1af896 2015-01-20 00:17:04 From: Min RK Date: 2015-01-20 00:17:04 Subject: [PATCH] test that custom description doesn't change kwarg --- diff --git a/IPython/html/widgets/tests/test_interaction.py b/IPython/html/widgets/tests/test_interaction.py index 023edcb..774b25c 100644 --- a/IPython/html/widgets/tests/test_interaction.py +++ b/IPython/html/widgets/tests/test_interaction.py @@ -489,13 +489,20 @@ def test_default_description(): ) def test_custom_description(): - c = interactive(f, b=widgets.Text(value='text', description='foo')) + d = {} + def record_kwargs(**kwargs): + d.clear() + d.update(kwargs) + + c = interactive(record_kwargs, b=widgets.Text(value='text', description='foo')) w = c.children[0] check_widget(w, cls=widgets.Text, value='text', description='foo', ) + w.value = 'different text' + nt.assert_equal(d, {'b': 'different text'}) def test_interact_manual_button(): c = interactive(f, __manual=True)