def setUp(self): self.collection = model.InformationObject('collection') self.collection.label = "Test Object"
def test_only_type(self): what = model.InformationObject('collection') expect = '"http://lod.example.org/museum/InformationObject/collection"' outs = model.factory.toString(what) self.assertEqual(expect, outs)