|
|
@@ -334,7 +334,7 @@ def main(): |
|
|
|
del obj[k] |
|
|
|
nobj = MDBase(obj) |
|
|
|
objstr.loadobj(nobj) |
|
|
|
else: |
|
|
|
else: # pragma: no cover |
|
|
|
raise NotImplementedError |
|
|
|
|
|
|
|
objstr.store(storefname) |
|
|
@@ -453,10 +453,10 @@ class _TestCases(unittest.TestCase): |
|
|
|
|
|
|
|
# and that when you get it's properties |
|
|
|
oobj = objst.by_id(oid) |
|
|
|
oitems = oobj.items() |
|
|
|
odict = dict(oobj.items()) |
|
|
|
|
|
|
|
# that is has the overlays property |
|
|
|
print `oitems` |
|
|
|
self.assertEqual(odict['overlay_refs'], [ bid ]) |
|
|
|
|
|
|
|
def test_objectstore(self): |
|
|
|
objst = ObjectStore.load(os.path.join('fixtures', 'sample.data.pasn1')) |
|
|
|