def assert_timestamp_equal(left, right, compare_nat_equal=True, msg=''):
 if (compare_nat_equal and (left is pd.NaT) and (right is pd.NaT)):
  return
 return pd.util.testing.assert_equal(left, right, msg=msg)

def assert_timestamp_equal ( left , right , compare_nat_equal = True , msg = '' ) : if ( compare_nat_equal and ( left is pd . NaT ) and ( right is pd . NaT ) ) : return return pd . util . testing . assert_equal ( left , right , msg = msg )
assert that two pandas timestamp objects are the same .