def testMaybeUpdateVersionVersionOverrideOlder(self): "Verify that maybeUpdateversion + versionOverride with older version works" self.cfg['versionOverride'] = ".1" try: ret = up2dateAuth.maybeUpdateVersion() except up2dateErrors.CommunicationError, e: pass
def testMaybeUpdateVersionVersionOverrideOlder(self): "Verify that maybeUpdateversion + versionOverride with older version works" self.cfg['versionOverride'] = ".1" try: ret = up2dateAuth.maybeUpdateVersion() except up2dateErrors.CommunicationError: pass else: self.fail("Excepted to get a Communication Error indicating unknown version")
def testMaybeUpdateVersionVersionOverrideOlder(self): "Verify that maybeUpdateversion + versionOverride with older version works" self.cfg['versionOverride'] = ".1" try: ret = up2dateAuth.maybeUpdateVersion() except up2dateErrors.CommunicationError: pass else: self.fail( "Excepted to get a Communication Error indicating unknown version" )
def __update_system_id(): try: up2dateAuth.maybeUpdateVersion() except up2dateErrors.CommunicationError: print(sys.exc_info()[1]) sys.exit(1)
def testMaybeUpdateVersionVersionCorruptSystemid(self): "Verify that maybeUpdateVersion handles a munged systemid file" import testutils testutils.setupConfig("8.0-workstation-i386-1-corrupt-sysid") ret = up2dateAuth.maybeUpdateVersion()
def testMaybeUpdateVersion(self): "Verify that maybeUpdateVersion works" ret = up2dateAuth.maybeUpdateVersion()
def __update_system_id(): try: up2dateAuth.maybeUpdateVersion() except up2dateErrors.CommunicationError, e: print e sys.exit(1)