Changeset 3b6a6e5


Ignore:
Timestamp:
2021-03-31T13:36:39Z (2 weeks ago)
Author:
/ <>
Children:
b2d7fdd
Parents:
19f5c94
Message:

FINALLY

File:
1 edited

Legend:

Unmodified
Added
Removed
  • .tests/btlib.py

    r19f5c94 r3b6a6e5  
    145145    clis[1].receive()
    146146    clis[1].send_priv_msg("&bitlbee", "account list")
    147     time.sleep(0.5)
    148147    ret = ret & (clis[1].receive().find(clis[1].nick+'@localhost') != -1)
    149148
     
    152151    clis[1].receive()
    153152    clis[1].send_priv_msg("&bitlbee", "account list")
    154     time.sleep(0.5)
    155153    ret = ret & (clis[1].receive().find(clis[1].nick+'@localhost') != -1)
    156154
     
    159157    clis[1].receive()
    160158    clis[1].send_priv_msg("&bitlbee", "account list")
    161     time.sleep(0.5)
    162159    ret = ret & (clis[1].receive().find(clis[1].nick+'@localhost') == -1)
    163160    return ret
     
    170167def unregister_test(clis):
    171168    clis[1].send_priv_msg("&bitlbee", "drop "+clis[1].pwd*2)
    172     time.sleep(0.5)
    173169    ret = (clis[1].receive().find('removed') != -1)
    174170    clis[1].send_priv_msg("&bitlbee", "drop "+clis[1].pwd*2)
    175     time.sleep(0.5)
    176171    ret = ret & (clis[1].receive().find('That account does not exist') != -1)
    177172    return ret
     
    180175    ret = True
    181176    clis[1].send_priv_msg("&bitlbee", "identify "+clis[1].pwd)
    182     time.sleep(0.5)
    183177    ret = ret & (clis[1].receive().find('Incorrect password') != -1)
    184178
    185179    clis[1].send_priv_msg("&bitlbee", "identify "+clis[1].pwd*2)
    186     time.sleep(0.5)
    187180    ret = ret & (clis[1].receive().find('Password accepted') != -1)
    188181    return ret
    189182
    190183def identify_nonexist_test(clis):
    191     clis[1].send_priv_msg("&bitlbee", "register "+clis[1].pwd)
    192     time.sleep(0.5)
     184    clis[1].send_priv_msg("&bitlbee", "identify "+clis[1].pwd)
    193185    return (clis[1].receive().find('The nick is (probably) not registered') != -1)
    194186
     
    216208    clis[0].add_jabber_buddy(clis[1].nick)
    217209    clis[1].send_priv_msg("&bitlbee", "yes")
    218     time.sleep(1)
    219210    clis[0].send_priv_msg("&bitlbee", "blist all")
    220     time.sleep(0.5)
    221     junk = clis[0].receive()
     211    junk = clis[0].receive(wait=5)
    222212    #ret = ret & (junk.find("1 available") != -1)
    223213    ret = ret & (junk.find(clis[1].nick) != -1)
Note: See TracChangeset for help on using the changeset viewer.