diff options
author | Jenkins <jenkins@review.openstack.org> | 2016-09-27 17:17:04 +0000 |
---|---|---|
committer | Gerrit Code Review <review@openstack.org> | 2016-09-27 17:17:04 +0000 |
commit | 7511ba9c9772332dd77de87509c430c6fa192d70 (patch) | |
tree | cc7015a8bc29d3a9e14c38a094f0c25cfee05f3e /trove/tests/unittests/cluster/test_cluster_controller.py | |
parent | 931b99306318dee4a7e097e1ccf154228b18df61 (diff) | |
parent | 9101308914ff2eb8e52e986062468f7953037d53 (diff) | |
download | trove-7511ba9c9772332dd77de87509c430c6fa192d70.tar.gz |
Merge "Use assertIn instead of assertTrue(A in B)"
Diffstat (limited to 'trove/tests/unittests/cluster/test_cluster_controller.py')
-rw-r--r-- | trove/tests/unittests/cluster/test_cluster_controller.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/trove/tests/unittests/cluster/test_cluster_controller.py b/trove/tests/unittests/cluster/test_cluster_controller.py index 192d5f97..29541f23 100644 --- a/trove/tests/unittests/cluster/test_cluster_controller.py +++ b/trove/tests/unittests/cluster/test_cluster_controller.py @@ -69,13 +69,13 @@ class TestClusterController(TestCase): def test_get_schema_create(self): schema = self.controller.get_schema('create', self.cluster) self.assertIsNotNone(schema) - self.assertTrue('cluster' in schema['properties']) + self.assertIn('cluster', schema['properties']) self.assertTrue('cluster') def test_get_schema_action_add_shard(self): schema = self.controller.get_schema('add_shard', self.add_shard) self.assertIsNotNone(schema) - self.assertTrue('add_shard' in schema['properties']) + self.assertIn('add_shard', schema['properties']) def test_validate_create(self): body = self.cluster |