##// END OF EJS Templates
Add test showing that the default value is actually copied
Sylvain Corlay -
Show More
@@ -1088,6 +1088,13 b' def test_dict_assignment():'
1088 nt.assert_equal(d, c.value)
1088 nt.assert_equal(d, c.value)
1089 nt.assert_true(c.value is d)
1089 nt.assert_true(c.value is d)
1090
1090
1091 def test_dict_default_value():
1092 """Check that the `{}` default value of the Dict traitlet constructor is
1093 actually copied."""
1094
1095 d1, d2 = Dict(), Dict()
1096 nt.assert_false(d1.get_default_value() is d2.get_default_value())
1097
1091 class TestLink(TestCase):
1098 class TestLink(TestCase):
1092 def test_connect_same(self):
1099 def test_connect_same(self):
1093 """Verify two traitlets of the same type can be linked together using link."""
1100 """Verify two traitlets of the same type can be linked together using link."""
General Comments 0
You need to be logged in to leave comments. Login now