Changeset 43a257d for .tests/test1.py
- Timestamp:
- 2021-02-25T10:31:39Z (4 years ago)
- Children:
- c05108c
- Parents:
- d24e6f7
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
.tests/test1.py
rd24e6f7 r43a257d 51 51 return text 52 52 53 def addJabberBuddy(self, nick): 54 self.sendPrivMsg("&bitlbee", "add 0 " + nick+"@localhost") 55 56 def acceptJabberRequest(self): 57 recent = self.receive() 58 if recent.find("not in your buddy list") == -1: 59 print("No request found") 60 return 61 self.sendPrivMsg("&bitlbee", "yes") 62 53 63 def runTests(): 54 64 clis = [] … … 60 70 a, b = clis[0], clis[1] 61 71 72 a.addJabberBuddy(b.nick) 73 b.acceptJabberRequest() 62 74 a.sendPrivMsg(b.nick, 'ohai qtie') 75 63 76 a.receive() 64 77 b.receive() … … 68 81 print('Receiver Log:' + b.log) 69 82 sys.exit(1) 83 print("Message test successful") 70 84 71 85 if __name__ == "__main__":
Note: See TracChangeset
for help on using the changeset viewer.