コード例 #1
0
ファイル: test_oui.py プロジェクト: pennello/macgen
 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)
コード例 #2
0
ファイル: test_oui.py プロジェクト: pennello/macgen
 def test_ensure_network(self):
   with testctx() as tmpdir:
     ouimgr = OuiMgr(tmpdir)
     ouimgr.ensure()
     smokecache(self,ouimgr.cache)