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] del obj[k]
nobj = MDBase(obj) nobj = MDBase(obj)
objstr.loadobj(nobj) objstr.loadobj(nobj)
else: else: # pragma: no cover
raise NotImplementedError raise NotImplementedError


objstr.store(storefname) objstr.store(storefname)
@@ -453,10 +453,10 @@ class _TestCases(unittest.TestCase):


# and that when you get it's properties # and that when you get it's properties
oobj = objst.by_id(oid) oobj = objst.by_id(oid)
oitems = oobj.items() odict = dict(oobj.items())


# that is has the overlays property # that is has the overlays property
print `oitems` self.assertEqual(odict['overlay_refs'], [ bid ])


def test_objectstore(self): def test_objectstore(self):
objst = ObjectStore.load(os.path.join('fixtures', 'sample.data.pasn1')) objst = ObjectStore.load(os.path.join('fixtures', 'sample.data.pasn1'))


||||||
x
 
000:0
Loading…
Cancel
Save