def setUp(self) -> None:
        """
        Create a DataArray with a time-axis that contains cftime.datetime
        objects.
        """
        month = np.arange(1, 13, 1)
        data = np.sin(2 * np.pi * month / 12.0)
        darray = DataArray(data, dims=["time"])
        darray.coords["time"] = xr.date_range(
            start="2017", periods=12, freq="1ME", calendar="noleap", use_cftime=True
        )

        self.darray = darray

        Create a DataArray with a time-axis that contains cftime.datetime
        objects.
        
xarray/tests/test_plot.py