@@ -181,14 +181,14 @@ def tearDown(self):
181
181
182
182
def test_is_installed_verb_noverb (self ):
183
183
"""Test is_installed_verb when passed an empty verb."""
184
- verb = ""
184
+ verb = []
185
185
186
186
with self .assertRaises (ValueError ):
187
187
umu_util .is_installed_verb (verb , self .test_winepfx )
188
188
189
189
def test_ist_installed_verb_nopfx (self ):
190
190
"""Test is_installed_verb when passed a non-existent pfx."""
191
- verb = "foo"
191
+ verb = [ "foo" ]
192
192
result = True
193
193
194
194
# Handle the None type
@@ -204,7 +204,7 @@ def test_ist_installed_verb_nopfx(self):
204
204
205
205
def test_is_installed_verb_nofile (self ):
206
206
"""Test is_installed_verb when the log file is absent."""
207
- verb = "foo"
207
+ verb = [ "foo" ]
208
208
result = True
209
209
210
210
result = umu_util .is_installed_verb (verb , self .test_winepfx )
@@ -216,14 +216,12 @@ def test_is_installed_verb(self):
216
216
Reads the winetricks.log file within the wine prefix to find the verb
217
217
that was passed from the command line.
218
218
"""
219
- verb = "foo"
219
+ verbs = [ "foo" , "bar" ]
220
220
wt_log = self .test_winepfx .joinpath ("winetricks.log" )
221
221
result = False
222
222
223
- with wt_log .open (mode = "w" , encoding = "utf-8" ) as file :
224
- file .write (verb )
225
-
226
- result = umu_util .is_installed_verb (verb , self .test_winepfx )
223
+ wt_log .write_text ("\n " .join (verbs ))
224
+ result = umu_util .is_installed_verb (verbs , self .test_winepfx )
227
225
self .assertTrue (result , "winetricks verb was not installed" )
228
226
229
227
def test_is_not_winetricks_verb (self ):
0 commit comments