def test_update(self): """Ensure that update works""" tree = DotDict({'foo': 'bar'}) tree.update({'foo': {}}) self.assertIsInstance(tree.foo, DotDict) tree.update(bar={}) self.assertIsInstance(tree.bar, DotDict) tree.update([['baz', {}]]) self.assertIsInstance(tree.baz, DotDict)