def test_set(self): element = Document(self.txn, 'test', {'key': 'value'}) element.set('key', 'another value') self.assertEqual(element.get('key'), 'another value')