Changeset 76f0fd1 for .tests/test1.py
- Timestamp:
- 2021-03-17T15:13:31Z (4 years ago)
- Children:
- 7361a6a
- Parents:
- 2e9b39a
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
.tests/test1.py
r2e9b39a r76f0fd1 164 164 165 165 def status_test(clis): 166 status = " 'get out of my room mom'"167 clis[1].send_priv_msg("&bitlbee", "set status "+status)166 status = "get out of my room mom" 167 clis[1].send_priv_msg("&bitlbee", "set status '"+status+"'") 168 168 clis[0].send_priv_msg("&bitlbee", "info "+clis[1].nick) 169 169 ret = (clis[0].receive().find("jabber - Status message: "+status) != -1) … … 179 179 junk = clis[0].receive() 180 180 ret = (junk.find(clis[1].nick) != -1) 181 ret = ret & (junk.find(" has quit") != -1)181 ret = ret & (junk.find("QUIT") != -1) 182 182 183 183 junk = clis[1].receive() 184 184 ret = ret & (junk.find(clis[0].nick) != -1) 185 ret = ret & (junk.find(" has quit") != -1)185 ret = ret & (junk.find("QUIT") != -1) 186 186 187 187 clis[0].send_priv_msg(clis[1].nick, "i'm not ur mom") 188 ret = ret & (clis[0].receive().find(" User does not exist: "+clis[1].nick) != -1)188 ret = ret & (clis[0].receive().find("No such nick/channel") != -1) 189 189 190 190 clis[0].send_priv_msg("&bitlbee", "account on") … … 192 192 junk = clis[0].receive() 193 193 ret = ret & (junk.find(clis[1].nick) != -1) 194 ret = ret & (junk.find(" has joined") != -1)194 ret = ret & (junk.find("JOIN") != -1) 195 195 196 196 junk = clis[1].receive() 197 197 ret = ret & (junk.find(clis[0].nick) != -1) 198 ret = ret & (junk.find(" has joined") != -1)198 ret = ret & (junk.find("JOIN") != -1) 199 199 200 200 return ret
Note: See TracChangeset
for help on using the changeset viewer.