MCPcopy Index your code
hub / github.com/pydata/xarray / test_wrap_kwargs_passed

Function test_wrap_kwargs_passed

xarray/tests/test_accessor_str.py:2356–2369  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2354
2355
2356def test_wrap_kwargs_passed() -> None:
2357 # GH4334
2358
2359 values = xr.DataArray(" hello world ")
2360
2361 result = values.str.wrap(7)
2362 expected = xr.DataArray(" hello\nworld")
2363 assert result.dtype == expected.dtype
2364 assert_equal(result, expected)
2365
2366 result = values.str.wrap(7, drop_whitespace=False)
2367 expected = xr.DataArray(" hello\n world\n ")
2368 assert result.dtype == expected.dtype
2369 assert_equal(result, expected)
2370
2371
2372def test_get(dtype) -> None:

Callers

nothing calls this directly

Calls 2

assert_equalFunction · 0.90
wrapMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…