diff options
Diffstat (limited to 'pmstestsuite/library')
-rw-r--r-- | pmstestsuite/library/case.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/pmstestsuite/library/case.py b/pmstestsuite/library/case.py index 80b4e4b..9ff757a 100644 --- a/pmstestsuite/library/case.py +++ b/pmstestsuite/library/case.py @@ -91,7 +91,7 @@ class BoolAssertionResult(AssertionResult): return self._cond def __bool__(self): - return self._cond == self._expect + return self._expect == self._cond class ContainsAssertionResult(AssertionResult): def __init__(self, name, needle, container): @@ -128,11 +128,11 @@ class EqualAssertionResult(AssertionResult): return repr(self._value) def __bool__(self): - return self._value == self._expect + return self._expect == self._value class NotEqualAssertionResult(EqualAssertionResult): def __bool__(self): - return self._value != self._expect + return self._expect != self._value @property def expected(self): |