@requires_good_network
def test_downloads():
 data_dir = _TempDir()
 path = datasets._fake.data_path(path=data_dir, update_path=False)
 assert_true(op.isfile(op.join(path, 'bar')))
 assert_true((datasets._fake.get_version() is None))

@ requires_good_network def test_downloads ( ) : data_dir = _TempDir ( ) path = datasets . _fake . data_path ( path = data_dir , update_path = False ) assert_true ( op . isfile ( op . join ( path , 'bar' ) ) ) assert_true ( ( datasets . _fake . get_version ( ) is None ) )
test dataset url handling .