Merge "Use right class method in IP availability tests"

This commit is contained in:
Jenkins 2016-04-02 14:51:59 +00:00 committed by Gerrit Code Review
commit 3a97e8a567

View File

@ -50,8 +50,8 @@ class NetworksIpAvailabilityTest(base.BaseAdminNetworkTest):
""" """
@classmethod @classmethod
def resource_setup(cls): def skip_checks(cls):
super(NetworksIpAvailabilityTest, cls).resource_setup() super(NetworksIpAvailabilityTest, cls).skip_checks()
if not test.is_extension_enabled('network-ip-availability', 'network'): if not test.is_extension_enabled('network-ip-availability', 'network'):
msg = "network-ip-availability extension not enabled." msg = "network-ip-availability extension not enabled."
raise cls.skipException(msg) raise cls.skipException(msg)