Changeset d24e6f7
- Timestamp:
- 2021-02-25T10:06:21Z (4 years ago)
- Children:
- 43a257d
- Parents:
- ed1f97c9
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
.tests/test1.py
red1f97c9 rd24e6f7 9 9 10 10 def sendRaw(self, msg): 11 self.receive() 11 12 self.log += msg+'\r\n' 12 13 self.sck.send((msg+'\r\n').encode()) … … 58 59 cli.jabberLogin() 59 60 a, b = clis[0], clis[1] 60 time.sleep(1) 61 61 62 a.sendPrivMsg(b.nick, 'ohai qtie') 62 print("Sender: " + a.receive())63 print("Receiver: " + b.receive())64 if notb.log.find('ohai qtie') == -1:65 print(' yay!')66 else:67 print(' nay...')63 a.receive() 64 b.receive() 65 if b.log.find('ohai qtie') == -1: 66 print('Message not coming through') 67 print('Sender Log:' + a.log) 68 print('Receiver Log:' + b.log) 68 69 sys.exit(1) 69 70
Note: See TracChangeset
for help on using the changeset viewer.