From 4efdcc6634d76893f01c68e19ce348a6d3c2286c Mon Sep 17 00:00:00 2001 From: John-Mark Gurney Date: Thu, 5 Sep 2019 15:09:01 -0700 Subject: [PATCH] fix coverage of overlays, and mark a not implemented exception as no cover.. --- ui/cli.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ui/cli.py b/ui/cli.py index b2479af..708cfc3 100644 --- a/ui/cli.py +++ b/ui/cli.py @@ -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'))