class_docstr: Module level tests for all sktime aligners.
class_docstr_tok: ["Module","level","tests","for","all","sktime","aligners","."]
docstr: Test that get_aligned returns aligned series.
docstr_tok: ["Test","that","get_aligned","returns","aligned","series","."]
code: def test_get_aligned(self, estimator_instance):
      """Test that get_aligned returns aligned series."""
      X = [_make_series(n_columns=2), _make_series(n_columns=2)]
      n = len(X)
      X_aligned = estimator_instance.fit(X).get_aligned()
  
      cls_name = type(estimator_instance).__name__
  
      msg = f"{cls_name}.get_aligned must return list of pd.DataFrame"
      msg += ", same length as X in fit"
      col_msg = f"{cls_name}.get_aligned series must have same columns as in X"
      assert isinstance(X_aligned, list), msg
      assert len(X_aligned) == n, msg
  
      for i in range(n):
          Xi = X_aligned[i]
          assert isinstance(Xi, pd.DataFrame), msg
          assert set(Xi.columns) == set(X[i].columns), col_msg
  
file_path: sktime/sktime/alignment/tests/test_all_aligners.py
imports: import numpy
  import pandas
  from sktime.datatypes._check import check_raise
  from sktime.tests.test_all_estimators import BaseFixtureGenerator, QuickTester
  from sktime.utils._testing.series import _make_series
label_desc: Use image node_id 3 for calling the TestAllAligners obj's underlying member method code with example usage: obj.test_get_aligned(estimator_instance) without return types