From d0d48ab7dfa47b75bd9ee12e50a2ca06d8873122 Mon Sep 17 00:00:00 2001 From: Stephen Diehl Date: Mon, 14 May 2012 12:07:34 -0400 Subject: [PATCH] test mutability of ndict --- tests/test_ndict.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tests/test_ndict.py b/tests/test_ndict.py index 6568e008..071f01b2 100644 --- a/tests/test_ndict.py +++ b/tests/test_ndict.py @@ -21,6 +21,12 @@ def test_ndict(): assert 'x' in nd assert 'y' not in nd + # Mutability + nd2 = ndict({'x': 1}) + assert nd2.x == 1 + nd2.x = 2 + assert nd2.x == 2 + # Class isolation assert '__init__' not in nd assert '__iter__' not in nd