

def testSetNewProperty(self):
    self.builder.set_property('spam', 'foo')
    doc = Document.from_object(self.builder.as_object(), base_uri='http://localhost')
    self.assertEquals(doc.properties['spam'], 'foo')

dataset/ETHPy150Open wharris/dougrain/test/test_builder.py PropertyBuilderTests.testSetNewProperty/original