fix: Sms.__eq__ bug due to typo
Add test of this to sms_test.py Change-Id: Ib0b420a81c1b211a9f03a2521d244b3a427d5e5b
This commit is contained in:
parent
996651a3a3
commit
b3b3104b6a
|
@ -17,4 +17,6 @@ msg2.msg = str(msg.msg)
|
|||
print(str(msg2))
|
||||
assert msg == msg2
|
||||
|
||||
assert msg == str(msg.msg)
|
||||
|
||||
# vim: expandtab tabstop=4 shiftwidth=4
|
||||
|
|
|
@ -40,7 +40,7 @@ class Sms:
|
|||
def __eq__(self, other):
|
||||
if isinstance(other, Sms):
|
||||
return self.msg == other.msg
|
||||
return inself.msg == other
|
||||
return self.msg == other
|
||||
|
||||
def matches(self, msg):
|
||||
return self.msg == msg
|
||||
|
|
Loading…
Reference in New Issue