Esempio n. 1
0
    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)
Esempio n. 2
0
    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)
Esempio n. 3
0
    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)
Esempio n. 4
0
    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)