Skip to content

Commit

Permalink
Fixes assertion bug in test_cells_weights.py
Browse files Browse the repository at this point in the history
An assertTrue was used where an assertIn is needed.

Fixes bug #1230109

Change-Id: Id75478b958ca8b9bc030563cfdef27a89e86b881
  • Loading branch information
Zhongyue Luo committed Sep 25, 2013
1 parent c27d6e4 commit c284022
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nova/tests/cells/test_cells_weights.py
Expand Up @@ -67,7 +67,7 @@ def test_all_weighers(self):
self.assertTrue(len(weighers) >= 2)
class_names = [cls.__name__ for cls in weighers]
self.assertIn('WeightOffsetWeigher', class_names)
self.assert_('RamByInstanceTypeWeigher', class_names)
self.assertIn('RamByInstanceTypeWeigher', class_names)


class _WeigherTestClass(test.NoDBTestCase):
Expand Down

0 comments on commit c284022

Please sign in to comment.