Changeset 76f0fd1 for .tests/test1.py


Ignore:
Timestamp:
2021-03-17T15:13:31Z (4 years ago)
Author:
/ <>
Children:
7361a6a
Parents:
2e9b39a
Message:

more fixes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • .tests/test1.py

    r2e9b39a r76f0fd1  
    164164
    165165def 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+"'")
    168168    clis[0].send_priv_msg("&bitlbee", "info "+clis[1].nick)
    169169    ret = (clis[0].receive().find("jabber - Status message: "+status) != -1)
     
    179179    junk = clis[0].receive()
    180180    ret = (junk.find(clis[1].nick) != -1)
    181     ret = ret & (junk.find("has quit") != -1)
     181    ret = ret & (junk.find("QUIT") != -1)
    182182
    183183    junk = clis[1].receive()
    184184    ret = ret & (junk.find(clis[0].nick) != -1)
    185     ret = ret & (junk.find("has quit") != -1)
     185    ret = ret & (junk.find("QUIT") != -1)
    186186
    187187    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)
    189189
    190190    clis[0].send_priv_msg("&bitlbee", "account on")
     
    192192    junk = clis[0].receive()
    193193    ret = ret & (junk.find(clis[1].nick) != -1)
    194     ret = ret & (junk.find("has joined") != -1)
     194    ret = ret & (junk.find("JOIN") != -1)
    195195
    196196    junk = clis[1].receive()
    197197    ret = ret & (junk.find(clis[0].nick) != -1)
    198     ret = ret & (junk.find("has joined") != -1)
     198    ret = ret & (junk.find("JOIN") != -1)
    199199
    200200    return ret
Note: See TracChangeset for help on using the changeset viewer.