Fix an invalid assertIsNotNone statement

This is to fix an invalid assertIsNotNone statement of
"self.assertIsNotNone(12345)", which will never raise an exception.

Change-Id: I450392d3a3b2ced651b4aed80753fa7c07ed89f2
This commit is contained in:
zhufl 2019-12-26 16:12:04 +08:00
parent b4bc1d85f0
commit 81edd0b665

View File

@ -470,7 +470,7 @@ class GuestAgentBackupTest(trove_testtools.TestCase):
backupBase.BackupRunner.encrypt_key = CRYPTO_KEY
RunnerClass = utils.import_class(BACKUP_DB2_CLS)
bkp = RunnerClass(12345) # this is not db2 backup filename
self.assertIsNotNone(12345) # look into this
self.assertIsNotNone(bkp) # look into this
self.assertEqual(
DB2BACKUP_CMD + PIPE + ZIP + PIPE + ENCRYPT, bkp.command)
self.assertIn("gz.enc", bkp.manifest)