Changeset 50efbf4 for .tests/btlib.py
- Timestamp:
- 2021-03-31T10:37:18Z (4 years ago)
- Children:
- 1fb3406
- Parents:
- dde98bb2
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
.tests/btlib.py
rdde98bb2 r50efbf4 14 14 15 15 SEPARATOR = "="*60 16 17 ALWAYSSHOWLOG = False 16 18 17 19 class IrcClient: … … 100 102 fail = not test_function(clis) 101 103 102 for cli in clis: 103 cli.receive() 104 if ALWAYSSHOWLOG or fail: 105 for cli in clis: 106 cli.receive() 107 print(SEPARATOR) 108 print("Test Log "+ cli.nick+":") 109 print(cli.tmplog) 104 110 print(SEPARATOR) 105 print("Test Log "+ cli.nick+":")106 print(cli.tmplog)107 print(SEPARATOR)108 111 109 112 if fail: … … 145 148 ret = junk.find(clis[1].nick) != -1 146 149 ret = ret & (junk.find("1 available") != -1) 147 ''' 150 return ret 151 152 def remove_buddy_test(clis): 153 ret = add_buddy_test(clis) 154 148 155 clis[0].send_priv_msg("&bitlbee", "remove " +clis[1].nick) 149 clis[0].send_priv_msg("&bitlbee", "blist") 156 clis[0].send_priv_msg("&bitlbee", "blist all") 157 time.sleep(0.5) 150 158 ret = ret & (clis[0].receive().find(clis[1].nick) == -1) 151 159 … … 153 161 clis[1].send_priv_msg("&bitlbee", "yes") 154 162 time.sleep(1) 155 clis[0].send_priv_msg("&bitlbee", "blist") 163 clis[0].send_priv_msg("&bitlbee", "blist all") 164 time.sleep(0.5) 156 165 junk = clis[0].receive() 157 166 ret = ret & (junk.find("1 available") != -1) 158 167 ret = ret & (junk.find(clis[1].nick) != -1) 159 '''160 168 return ret 161 169
Note: See TracChangeset
for help on using the changeset viewer.