fix: Sms.__eq__ bug due to typo

Add test of this to sms_test.py

Change-Id: Ib0b420a81c1b211a9f03a2521d244b3a427d5e5b
This commit is contained in:
Neels Hofmeyr 2017-05-31 20:38:56 +02:00
parent 996651a3a3
commit b3b3104b6a
2 changed files with 3 additions and 1 deletions

View File

@ -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

View File

@ -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