test_aide.equality.assert_index_equal_msg

test_aide.equality.assert_index_equal_msg(actual, expected, msg_tag, print_actual_and_expected=False, **kwargs)[source]

Compares actual and expected pandas.Index objects and asserts equality. Calls pd.testing.assert_index_equal but presents msg_tag, and optionally actual and expected Series, in addition to any other exception info.

Parameters
  • actual (pd.Index) – The actual index.

  • expected (pd.Index) – The expected index.

  • msg_tag (string) – A tag for the assert error message.

  • print_actual_and_expected (Boolean) – print the actual and expected valuess along with error message tag

  • **kwargs – Keyword args passed to pd.testing.assert_index_equal.