Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d6a74651 authored by Myles Watson's avatar Myles Watson
Browse files

Add GreaterThan and LessThan to truth

Bug: 197011305
Test: cert/run ControllerTest
Tag: #feature
BYPASS_LONG_LINES_REASON: Bluetooth likes 120 lines

Change-Id: I11b1f3f5f31a097c91e6adc84fad21d33adfa5ff
parent 8f6341a5
Loading
Loading
Loading
Loading
+9 −1
Original line number Diff line number Diff line
@@ -38,7 +38,15 @@ class ObjectSubject(object):

    def isNotEqualTo(self, other):
        if self._value == other:
            raise signals.TestFailure("Expected \"%s\" to not be equal to \"%s\"" % (self._value, other), extras=None)
            raise signals.TestFailure("Expected \"%s\" not to be equal to \"%s\"" % (self._value, other), extras=None)

    def isGreaterThan(self, other):
        if self._value <= other:
            raise signals.TestFailure("Expected \"%s\" to be greater than \"%s\"" % (self._value, other), extras=None)

    def isLessThan(self, other):
        if self._value >= other:
            raise signals.TestFailure("Expected \"%s\" to be less than \"%s\"" % (self._value, other), extras=None)

    def isNone(self):
        if self._value is not None: