@requires_good_network
def test_megsim():
 data_dir = _TempDir()
 paths = datasets.megsim.load_data('index', 'text', 'text', path=data_dir, update_path=False)
 assert_equal(len(paths), 1)
 assert_true(paths[0].endswith('index.html'))

@ requires_good_network def test_megsim ( ) : data_dir = _TempDir ( ) paths = datasets . megsim . load_data ( 'index' , 'text' , 'text' , path = data_dir , update_path = False ) assert_equal ( len ( paths ) , 1 ) assert_true ( paths [ 0 ] . endswith ( 'index.html' ) )
test megsim url handling .