From b13ec98467f2d374e741efa5888937c5f2b86ebb Mon Sep 17 00:00:00 2001 From: Cedric Brandily Date: Wed, 6 Apr 2016 01:12:40 +0200 Subject: Prefer assertEqual/assertIn over assertOutput/assertInOutput functional.common.tests module defines: * assertOutput (similar to assertEqual) * assertInOutput (similar to assertIn) in order to allow the usage of assertions in testcase classmethods but there is no reason to use them in testcase instancemethods at least because they raise Exception instances instead of AssertionError instances. Change-Id: I9ffcaf9c6e6a1ff5df6ea2d79be3fb4496db4b85 --- functional/tests/common/test_quota.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'functional/tests/common') diff --git a/functional/tests/common/test_quota.py b/functional/tests/common/test_quota.py index 7a0cb640..62b43a34 100644 --- a/functional/tests/common/test_quota.py +++ b/functional/tests/common/test_quota.py @@ -35,4 +35,4 @@ class QuotaTests(test.TestCase): def test_quota_show(self): raw_output = self.openstack('quota show ' + self.PROJECT_NAME) for expected_field in self.EXPECTED_FIELDS: - self.assertInOutput(expected_field, raw_output) + self.assertIn(expected_field, raw_output) -- cgit v1.2.1