def test_start_detached(fake_proc):
 argv = ['foo', 'bar']
 fake_proc._proc.startDetached.return_value = (True, 0)
 fake_proc.start_detached(*argv)
 fake_proc._proc.startDetached.assert_called_with(*(list(argv) + [None]))

def test_start_detached ( fake_proc ) : argv = [ 'foo' , 'bar' ] fake_proc . _proc . startDetached . return_value = ( True , 0 ) fake_proc . start_detached ( * argv ) fake_proc . _proc . startDetached . assert_called_with ( * ( list ( argv ) + [ None ] ) )
test starting a detached process .