Пример #1
0
    def eventValue_test_5(self):
        """
        Test value() method
        """

        event = Event(var=self.X, val=self.X.domain[0])
        assert (event.value(self.X) == self.X.domain[0])
Пример #2
0
    def eventValue_test_5(self):
        """
        Test value() method
        """

        event = Event(var=self.X, val=self.X.domain[0])
        assert(event.value(self.X) == self.X.domain[0])
Пример #3
0
    def eventSetValue_test_6(self):
        """
        Test setValue method
        """

        event = Event(var=self.X, val=self.X.domain[0])
        event.setValue(self.X, self.X.domain[1])
        event.setValue(self.Y, self.Y.domain[1])

        assert (len(event.event.keys()) == 2)
        assert (event.value(self.X) == self.X.domain[1])
        assert (event.value(self.Y) == self.Y.domain[1])
Пример #4
0
    def eventSetValue_test_6(self):
        """
        Test setValue method
        """

        event = Event(var=self.X, val=self.X.domain[0])
        event.setValue(self.X, self.X.domain[1])
        event.setValue(self.Y, self.Y.domain[1])

        assert(len(event.event.keys()) == 2)
        assert(event.value(self.X) == self.X.domain[1])
        assert(event.value(self.Y) == self.Y.domain[1])