Browse Source

fix coverage of overlays, and mark a not implemented

exception as no cover..
main
John-Mark Gurney 5 years ago
parent
commit
4efdcc6634
1 changed files with 3 additions and 3 deletions
  1. +3
    -3
      ui/cli.py

+ 3
- 3
ui/cli.py View File

@@ -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'))


Loading…
Cancel
Save