diff options
author | Bin Zhou <zhou.bin9@zte.com.cn> | 2016-09-02 13:10:32 +0800 |
---|---|---|
committer | Bin Zhou <zhou.bin9@zte.com.cn> | 2016-09-02 08:30:00 +0000 |
commit | e3a2432bf7640352d1c7f4381ea5e17570667758 (patch) | |
tree | f7f8b151b07ef44261d5e62e48717af4a157250a /heat/tests/test_signal.py | |
parent | ba86557ed2b2426fa82659d3fa7a3cc9a9d51d2e (diff) | |
download | heat-e3a2432bf7640352d1c7f4381ea5e17570667758.tar.gz |
Modify use of assertTrue(A in B)
Developers should use assertIn(A, B) instead of assertTrue(A in B ).
TrivialFix
Change-Id: I6f2b33e73ff3ebf28a681021d58c9b2485a016fd
Diffstat (limited to 'heat/tests/test_signal.py')
-rw-r--r-- | heat/tests/test_signal.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/heat/tests/test_signal.py b/heat/tests/test_signal.py index 611e0bff5..16e1a4a7d 100644 --- a/heat/tests/test_signal.py +++ b/heat/tests/test_signal.py @@ -206,7 +206,7 @@ class SignalTest(common.HeatTestCase): # Test first_url = rsrc.FnGetAtt('signal') - self.assertTrue('alarm_url' in first_url) + self.assertIn('alarm_url', first_url) mock_has.assert_called_once_with('signal_handler') mock_has.reset_mock() # reset the count for the next check @@ -355,7 +355,7 @@ class SignalTest(common.HeatTestCase): # Test first_url = rsrc.FnGetAtt('signal') - self.assertTrue('alarm_url' in first_url) + self.assertIn('alarm_url', first_url) mock_has.assert_called_once_with('signal_handler') mock_has.reset_mock() # reset the count for the next check |