use called is True instead of called == 1
This commit is contained in:
@@ -14,4 +14,4 @@ class TestCommit(unittest.TestCase):
|
||||
|
||||
def test_commit(self):
|
||||
commit(self.phenny, None)
|
||||
assert self.phenny.reply.called == 1
|
||||
assert self.phenny.reply.called is True
|
||||
|
||||
Reference in New Issue
Block a user