Merge "Fix invalid assertIsNotNone statement"

This commit is contained in:
Zuul 2020-11-10 16:20:21 +00:00 committed by Gerrit Code Review
commit 599ef07775
1 changed files with 5 additions and 5 deletions

View File

@ -17,8 +17,8 @@ class TestLimits(base.BaseFunctionalTest):
def test_limits(self):
sot = self.conn.compute.get_limits()
self.assertIsNotNone('maxTotalInstances', sot.absolute)
self.assertIsNotNone('maxTotalRAMSize', sot.absolute)
self.assertIsNotNone('maxTotalKeypairs', sot.absolute)
self.assertIsNotNone('maxSecurityGroups', sot.absolute)
self.assertIsNotNone('maxSecurityGroupRules', sot.absolute)
self.assertIsNotNone(sot.absolute['instances'])
self.assertIsNotNone(sot.absolute['total_ram'])
self.assertIsNotNone(sot.absolute['keypairs'])
self.assertIsNotNone(sot.absolute['security_groups'])
self.assertIsNotNone(sot.absolute['security_group_rules'])