Changeset 12886d4 for .tests/test1.py


Ignore:
Timestamp:
2021-02-25T17:50:11Z (4 years ago)
Author:
/ <>
Children:
5a1b05c
Parents:
56c9fbf
Message:

learn to write python howaboutit

File:
1 edited

Legend:

Unmodified
Added
Removed
  • .tests/test1.py

    r56c9fbf r12886d4  
    7171def testSendMessage(sender, receiver, message, shouldreceive = True):
    7272    sender.sendPrivMsg(b.nick, message)
    73     msginhere = receiver.receive()
    74     received = !(msginhere.find(message) == -1)
     73    received = receiver.receive().find(message) != -1
    7574    if shouldreceive ^ received:
    7675        print('Test failed: Message from ' + sender.nick + ' to ' + receiver.nick)
Note: See TracChangeset for help on using the changeset viewer.