(self, dtype)
| 2104 | assert_identical(expected, actual) |
| 2105 | |
| 2106 | def test_unstack(self, dtype): |
| 2107 | array = np.linspace(0, 5, 3 * 10).astype(dtype) * unit_registry.m |
| 2108 | variable = xr.Variable("z", array) |
| 2109 | |
| 2110 | expected = attach_units( |
| 2111 | strip_units(variable).unstack(z={"x": 3, "y": 10}), extract_units(variable) |
| 2112 | ) |
| 2113 | actual = variable.unstack(z={"x": 3, "y": 10}) |
| 2114 | |
| 2115 | assert_units_equal(expected, actual) |
| 2116 | assert_identical(expected, actual) |
| 2117 | |
| 2118 | @pytest.mark.parametrize( |
| 2119 | "unit,error", |
nothing calls this directly
no test coverage detected