Changeset 542b7d5 for .tests/btlib.py


Ignore:
Timestamp:
2021-03-31T11:00:24Z (4 years ago)
Author:
/ <>
Children:
cdb59cc
Parents:
1fb3406
Message:

del acc

File:
1 edited

Legend:

Unmodified
Added
Removed
  • .tests/btlib.py

    r1fb3406 r542b7d5  
    137137    return ret
    138138
     139def jabber_delete_account_test(clis):
     140    ret = True
     141    clis[1].send_priv_msg("&bitlbee", "account list")
     142    time.sleep(0.5)
     143    ret = ret & (clis[0].receive().find(clis[1].nick+'@localhost') != -1)
     144
     145    clis[1].send_priv_msg("&bitlbee", "account on")
     146    clis[1].send_priv_msg("&bitlbee", "account "+clis[1].nick+" del")
     147    clis[0].receive()
     148    clis[1].send_priv_msg("&bitlbee", "account list")
     149    time.sleep(0.5)
     150    ret = ret & (clis[0].receive().find(clis[1].nick+'@localhost') != -1)
     151
     152    clis[1].send_priv_msg("&bitlbee", "account off")
     153    clis[1].send_priv_msg("&bitlbee", "account "+clis[1].nick+" del")
     154    clis[0].receive()
     155    clis[1].send_priv_msg("&bitlbee", "account list")
     156    time.sleep(0.5)
     157    ret = ret & (clis[0].receive().find(clis[1].nick+'@localhost') == -1)
     158    return ret
     159
    139160def add_buddy_test(clis):
    140161    clis[0].add_jabber_buddy(clis[1].nick)
     
    164185    time.sleep(0.5)
    165186    junk = clis[0].receive()
    166     ret = ret & (junk.find("1 available") != -1)
     187    #ret = ret & (junk.find("1 available") != -1)
    167188    ret = ret & (junk.find(clis[1].nick) != -1)
    168189    return ret
Note: See TracChangeset for help on using the changeset viewer.