test mutability of ndict

This commit is contained in:
Stephen Diehl
2012-05-14 12:07:34 -04:00
parent 386977a1b7
commit d0d48ab7df
+6
View File
@@ -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