Beispiel #1
0
 def testGetRemotePackageIndex(self):
     """Check that remote binhosts are fetched correctly."""
     self.PatchObject(cros_install_debug_syms.binpkg,
                      "GrabRemotePackageIndex",
                      return_value=SimpleIndex({}, {}))
     for binhost in self.remote_binhosts:
         cros_install_debug_syms.GetPackageIndex(binhost)
Beispiel #2
0
 def testGetLocalPackageIndex(self):
     """Check that local binhosts are fetched correctly."""
     self.PatchObject(cros_install_debug_syms.binpkg,
                      "GrabLocalPackageIndex",
                      return_value=SimpleIndex({}, {}))
     self.PatchObject(cros_install_debug_syms.os.path,
                      'isdir',
                      return_value=True)
     for binhost in self.local_binhosts:
         cros_install_debug_syms.GetPackageIndex(binhost)