Exemple #1
0
 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)
Exemple #2
0
 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)
Exemple #3
0
 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)
Exemple #4
0
 def runTestArg(self, creds):
     spoolss.enumprinterdrivers(
         "\\\\%s" % self.server["hostname"], creds = creds)
Exemple #5
0
 def runTestArg(self, unc):
     spoolss.enumprinterdrivers(unc)
Exemple #6
0
 def runTestArg(self, creds):
     spoolss.enumprinterdrivers(
         "\\\\{0!s}".format(self.server["hostname"]), creds = creds)
Exemple #7
0
 def runTestArg(self, creds):
     spoolss.enumprinterdrivers("\\\\%s" % self.server["hostname"],
                                creds=creds)
Exemple #8
0
 def runTestArg(self, unc):
     spoolss.enumprinterdrivers(unc)