def test_ensure_nonetwork(self): with testctx() as tmpdir: ouimgr = OuiMgr(tmpdir) cache = Random.cache() ouimgr.save(cache) ouimgr = OuiMgr(tmpdir) ouimgr.ensure() smokecache(self,ouimgr.cache)
def test_ensure_network(self): with testctx() as tmpdir: ouimgr = OuiMgr(tmpdir) ouimgr.ensure() smokecache(self,ouimgr.cache)