File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -197,6 +197,7 @@ def test_one_dev(self):
197
197
self .setUpRegistry (value_dict , key_dict )
198
198
199
199
with patch ('mbed_lstools.windows.MbedLsToolsWin7._run_cli_process' ) as _cliproc :
200
+ _cliproc .return_value = ("" , "" , 0 )
200
201
expected_info = {
201
202
'mount_point' : u'F:' ,
202
203
'serial_port' : 'COM7' ,
@@ -207,5 +208,16 @@ def test_one_dev(self):
207
208
self .assertIn (expected_info , devices )
208
209
self .assertNoRegMut ()
209
210
211
+ def test_mount_point_ready (self ):
212
+ with patch ('mbed_lstools.windows.MbedLsToolsWin7._run_cli_process' ) as _cliproc :
213
+ _cliproc .return_value = ("dummy" , "" , 0 )
214
+ self .assertTrue (self .lstool .mount_point_ready ("dummy" ))
215
+
216
+ _cliproc .reset_mock ()
217
+
218
+ _cliproc .return_value = ("" , "dummy" , 1 )
219
+ self .assertFalse (self .lstool .mount_point_ready ("dummy" ))
220
+
221
+
210
222
if __name__ == '__main__' :
211
223
unittest .main ()
You can’t perform that action at this time.
0 commit comments