def check(value, other_value, expected): """Vector node value {0} == {1}: {2}""" # pylint: disable=W0212 # Access to a protected member of a client class vector = VectorEq(value) assert expected == vector._value_eq(other_value)
def check(value, index, other_value, other_index, expected): """Series node value {0}/{1} == {2}/{3}: {4}""" # pylint: disable=W0212 # Access to a protected member of a client class this = pd.Series(value, index=pd.to_datetime(index)) other = pd.Series(other_value, index=pd.to_datetime(other_index)) vector = VectorEq(this) assert expected == vector._value_eq(other)