Changeset 12886d4 for .tests/test1.py
- Timestamp:
- 2021-02-25T17:50:11Z (4 years ago)
- Children:
- 5a1b05c
- Parents:
- 56c9fbf
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
.tests/test1.py
r56c9fbf r12886d4 71 71 def testSendMessage(sender, receiver, message, shouldreceive = True): 72 72 sender.sendPrivMsg(b.nick, message) 73 msginhere = receiver.receive() 74 received = !(msginhere.find(message) == -1) 73 received = receiver.receive().find(message) != -1 75 74 if shouldreceive ^ received: 76 75 print('Test failed: Message from ' + sender.nick + ' to ' + receiver.nick)
Note: See TracChangeset
for help on using the changeset viewer.