def runTest(self): for i in (1, 2): info = spoolss.enumprinterdrivers( "\\\\%s" % self.server["hostname"], level = i) try: if not self.sample_info.has_key(i): self.log("%s" % info) self.fail() stf.dict_check(self.sample_info[i], info) except ValueError, msg: raise "info%d: %s" % (i, msg)
def runTest(self): for i in (1, 2): info = spoolss.enumprinterdrivers( "\\\\{0!s}".format(self.server["hostname"]), level = i) try: if not self.sample_info.has_key(i): self.log("{0!s}".format(info)) self.fail() stf.dict_check(self.sample_info[i], info) except ValueError, msg: raise "info{0:d}: {1!s}".format(i, msg)
def runTest(self): for i in (1, 2): info = spoolss.enumprinterdrivers("\\\\%s" % self.server["hostname"], level=i) try: if not self.sample_info.has_key(i): self.log("%s" % info) self.fail() stf.dict_check(self.sample_info[i], info) except ValueError, msg: raise "info%d: %s" % (i, msg)
def runTestArg(self, creds): spoolss.enumprinterdrivers( "\\\\%s" % self.server["hostname"], creds = creds)
def runTestArg(self, unc): spoolss.enumprinterdrivers(unc)
def runTestArg(self, creds): spoolss.enumprinterdrivers( "\\\\{0!s}".format(self.server["hostname"]), creds = creds)
def runTestArg(self, creds): spoolss.enumprinterdrivers("\\\\%s" % self.server["hostname"], creds=creds)