File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -106,8 +106,8 @@ def test_module_list_no_options(self):
106106 columns , data = self .cmd .take_action (parsed_args )
107107
108108 # Additional modules may be present, just check our additions
109- self .assertTrue (module_name_1 in columns )
110- self .assertTrue (module_version_1 in data )
109+ self .assertIn (module_name_1 , columns )
110+ self .assertIn (module_version_1 , data )
111111
112112 def test_module_list_all (self ):
113113 arglist = [
@@ -124,7 +124,7 @@ def test_module_list_all(self):
124124 columns , data = self .cmd .take_action (parsed_args )
125125
126126 # Additional modules may be present, just check our additions
127- self .assertTrue (module_name_1 in columns )
128- self .assertTrue (module_name_2 in columns )
129- self .assertTrue (module_version_1 in data )
130- self .assertTrue (module_version_2 in data )
127+ self .assertIn (module_name_1 , columns )
128+ self .assertIn (module_name_2 , columns )
129+ self .assertIn (module_version_1 , data )
130+ self .assertIn (module_version_2 , data )
Original file line number Diff line number Diff line change @@ -1128,7 +1128,7 @@ def test_image_set_tag_merge(self):
11281128 # ImageManager.update(image, **kwargs)
11291129 a , k = self .images_mock .update .call_args
11301130 self .assertEqual (image_fakes .image_id , a [0 ])
1131- self .assertTrue ('tags' in k )
1131+ self .assertIn ('tags' , k )
11321132 self .assertEqual (set (kwargs ['tags' ]), set (k ['tags' ]))
11331133 self .assertIsNone (result )
11341134
@@ -1154,7 +1154,7 @@ def test_image_set_tag_merge_dupe(self):
11541154 # ImageManager.update(image, **kwargs)
11551155 a , k = self .images_mock .update .call_args
11561156 self .assertEqual (image_fakes .image_id , a [0 ])
1157- self .assertTrue ('tags' in k )
1157+ self .assertIn ('tags' , k )
11581158 self .assertEqual (set (kwargs ['tags' ]), set (k ['tags' ]))
11591159 self .assertIsNone (result )
11601160
You can’t perform that action at this time.
0 commit comments