Changeset 0a98f92
- Timestamp:
- 2021-03-31T11:19:32Z (4 years ago)
- Children:
- 5d927631
- Parents:
- cdb59cc
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
.tests/btlib.py
rcdb59cc r0a98f92 139 139 def jabber_delete_account_test(clis): 140 140 ret = True 141 clis[1].receive() 141 142 clis[1].send_priv_msg("&bitlbee", "account list") 142 143 time.sleep(0.5) 143 ret = ret & (clis[ 0].receive().find(clis[1].nick+'@localhost') != -1)144 ret = ret & (clis[1].receive().find(clis[1].nick+'@localhost') != -1) 144 145 145 146 clis[1].send_priv_msg("&bitlbee", "account on") 146 147 clis[1].send_priv_msg("&bitlbee", "account "+clis[1].nick+" del") 147 clis[ 0].receive()148 clis[1].receive() 148 149 clis[1].send_priv_msg("&bitlbee", "account list") 149 150 time.sleep(0.5) 150 ret = ret & (clis[ 0].receive().find(clis[1].nick+'@localhost') != -1)151 ret = ret & (clis[1].receive().find(clis[1].nick+'@localhost') != -1) 151 152 152 153 clis[1].send_priv_msg("&bitlbee", "account off") 153 154 clis[1].send_priv_msg("&bitlbee", "account "+clis[1].nick+" del") 154 clis[ 0].receive()155 clis[1].receive() 155 156 clis[1].send_priv_msg("&bitlbee", "account list") 156 157 time.sleep(0.5) 157 ret = ret & (clis[ 0].receive().find(clis[1].nick+'@localhost') == -1)158 ret = ret & (clis[1].receive().find(clis[1].nick+'@localhost') == -1) 158 159 return ret 159 160
Note: See TracChangeset
for help on using the changeset viewer.