The answer of @BioData41 is working for me, however assert_frame_equal is throwing an exception if the comparison is failing.
For a simple boolean result, I am using this:
test_df1 = df1.reset_index(drop=True)[list(df2.columns)]
test_df2 = df2.reset_index(drop=True)
test_df1.compare(test_df2).empty # Should return True or False