示例#1
0
    def test_1_reread(self):
        """Verify that the uuid determined during the first read is the
                same as the uuid in the second read."""
        self.ic = imageconfig.ImageConfig(
            os.path.join(self.test_root, "cfg_cache"), self.test_root)
        pub = self.ic.publishers["sfbay.sun.com"]
        uuid = pub.client_uuid

        ic2 = imageconfig.ImageConfig(
            os.path.join(self.test_root, "cfg_cache"), self.test_root)
        pub2 = ic2.publishers["sfbay.sun.com"]
        self.assertEqual(pub2.client_uuid, uuid)
示例#2
0
 def setUp(self):
     pkg5unittest.Pkg5TestCase.setUp(self)
     self.make_misc_files(self.misc_files)
     self.ic = imageconfig.ImageConfig(
         os.path.join(self.test_root, "cfg_cache"), self.test_root)