From 0f78e2213f741a61b20c93f89072817dac9281f5 2012-04-18 20:35:43 From: MinRK Date: 2012-04-18 20:35:43 Subject: [PATCH] more detail in oinfo tests --- diff --git a/IPython/zmq/tests/test_message_spec.py b/IPython/zmq/tests/test_message_spec.py index ae84166..f6c1606 100644 --- a/IPython/zmq/tests/test_message_spec.py +++ b/IPython/zmq/tests/test_message_spec.py @@ -345,6 +345,8 @@ def test_oinfo_found(): yield tst content = reply['content'] yield nt.assert_true(content['found']) + argspec = content['argspec'] + yield nt.assert_true(argspec is None, "didn't expect argspec dict, got %r" % argspec) @dec.parametric @@ -361,6 +363,9 @@ def test_oinfo_detail(): yield tst content = reply['content'] yield nt.assert_true(content['found']) + argspec = content['argspec'] + yield nt.assert_true(isinstance(argspec, dict), "expected non-empty argspec dict, got %r" % argspec) + yield nt.assert_equals(argspec['defaults'], [0]) @dec.parametric