<s> """<STR_LIT>""" <EOL> from ... support . handlerepo import HandleRepo <EOL> from ... consts import DATALAD_SPECIAL_REMOTE <EOL> from ... tests . utils import * <EOL> from . import _get_custom_runner <EOL> from ... support . exceptions import CommandError <EOL> from ... downloaders . tests . utils import get_test_providers <EOL> @ with_tempfile ( ) <EOL> @ skip_if_no_network <EOL> def check_basic_scenario ( direct , d ) : <EOL> handle = HandleRepo ( d , runner = _get_custom_runner ( d ) , direct = direct ) <EOL> handle . annex_initremote ( <EOL> DATALAD_SPECIAL_REMOTE , <EOL> [ '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' % DATALAD_SPECIAL_REMOTE , <EOL> '<STR_LIT>' ] ) <EOL> get_test_providers ( '<STR_LIT>' ) <EOL> with swallow_outputs ( ) as cmo : <EOL> handle . annex_addurls ( [ '<STR_LIT>' ] ) <EOL> if PY2 : <EOL> assert_in ( '<STR_LIT>' , cmo . err ) <EOL> else : <EOL> pass <EOL> with swallow_outputs ( ) as cmo , swallow_logs ( ) as cml : <EOL> with assert_raises ( CommandError ) as cme : <EOL> handle . annex_addurls ( [ '<STR_LIT>' ] ) <EOL> err , out = cmo . err , cmo . out <EOL> assert_equal ( out , '<STR_LIT>' ) <EOL> assert_in ( '<STR_LIT>' , err ) <EOL> def test_basic_scenario ( ) : <EOL> yield check_basic_scenario , False <EOL> if not on_windows : <EOL> yield check_basic_scenario , True </s>
