diff options
author | Jason Kölker <jason@koelker.net> | 2012-06-07 18:13:38 -0500 |
---|---|---|
committer | Jason Kölker <jason@koelker.net> | 2012-06-07 18:13:38 -0500 |
commit | 3f0df42daeb0229a1c04382ee8973f9b32e9de4b (patch) | |
tree | e91cfacddf42241b4482736f4003a70e5bf7617b /tests/unit/rpc/test_matchmaker.py | |
parent | e445ecccff1a4167c7827f775808a649a9886984 (diff) | |
download | oslo-3f0df42daeb0229a1c04382ee8973f9b32e9de4b.tar.gz oslo-3f0df42daeb0229a1c04382ee8973f9b32e9de4b.tar.xz oslo-3f0df42daeb0229a1c04382ee8973f9b32e9de4b.zip |
Fix RPC tests to not use assertIn
* Fixes Bug #1010244
Change-Id: Idac365a1719c49846ef105b90683e631310fbf6c
Diffstat (limited to 'tests/unit/rpc/test_matchmaker.py')
-rw-r--r-- | tests/unit/rpc/test_matchmaker.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/unit/rpc/test_matchmaker.py b/tests/unit/rpc/test_matchmaker.py index a38b59c..8a48608 100644 --- a/tests/unit/rpc/test_matchmaker.py +++ b/tests/unit/rpc/test_matchmaker.py @@ -29,7 +29,7 @@ class _MatchMakerTestCase(unittest.TestCase): matched_hosts = map(lambda x: x[1], queues) for host in matched_hosts: - self.assertIn(host, self.hosts) + self.assertTrue(host in self.hosts) def test_fanout_host_matches(self): """For known hosts, see if they're in fanout.""" @@ -38,7 +38,7 @@ class _MatchMakerTestCase(unittest.TestCase): LOG.info("Received result from matchmaker: %s", queues) for host in self.hosts: - self.assertIn(host, matched_hosts) + self.assertTrue(host in matched_hosts) class MatchMakerFileTestCase(_MatchMakerTestCase): |