Пример #1
0
 def keytest3(self,x):
     es.keyploadfromfile(x, server_var['eventscripts_addondir'] + "/pyunittest/myfile.vdf")
     y = es.keypfindsubkey(x, "subkey", False)
     outcome = es.keypgetint(y, "hello")
     self.failUnless(outcome==99)
     z = es.keypfindsubkey(y, "test", True)
     name = es.keypgetname(z)
     self.failUnless(name =="test")
     pp = es.keypcreate()
     es.keyploadfromfile(pp, server_var['eventscripts_addondir'] + "/pyunittest/myfile.vdf")
     es.keyprecursivekeycopy(z, pp)
     name = es.keypgetname(z)
     self.failUnless(name == "justice2")
Пример #2
0
 def keytest3(self, x):
     es.keyploadfromfile(
         x, server_var['eventscripts_addondir'] + "/pyunittest/myfile.vdf")
     y = es.keypfindsubkey(x, "subkey", False)
     outcome = es.keypgetint(y, "hello")
     self.failUnless(outcome == 99)
     z = es.keypfindsubkey(y, "test", True)
     name = es.keypgetname(z)
     self.failUnless(name == "test")
     pp = es.keypcreate()
     es.keyploadfromfile(
         pp, server_var['eventscripts_addondir'] + "/pyunittest/myfile.vdf")
     es.keyprecursivekeycopy(z, pp)
     name = es.keypgetname(z)
     self.failUnless(name == "justice2")
Пример #3
0
 def load(self, filename):
     '''
     Loads this KeyValue's contents from a file.
     '''
     es.keyploadfromfile(self._id_, filename)
Пример #4
0
 def load(self, filename):
     '''
     Loads this KeyValue's contents from a file.
     '''
     es.keyploadfromfile(self._id_, filename)