Changeset 3d4cb51
- Timestamp:
- 2021-03-18T10:40:41Z (4 years ago)
- Children:
- 51f144a
- Parents:
- 68ba9f4
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
.tests/test1.py
r68ba9f4 r3d4cb51 11 11 STATUSTEST = True 12 12 DEFAULTTARGETTEST = True 13 HELPTEST = True 13 14 SHOWLOG = False 14 15 SHOWTESTLOG = True … … 170 171 ret = (clis[0].receive().find("jabber - Status message: "+status) != -1) 171 172 173 clis[1].send_priv_msg("&bitlbee", "set") 174 ret = ret & (clis[1].receive().find(status) != -1) 175 172 176 clis[1].send_priv_msg("&bitlbee", "set -del status") 173 177 clis[0].send_priv_msg("&bitlbee", "info "+clis[1].nick) … … 219 223 return ret 220 224 225 def help_test(clis): 226 clis[0].send_priv_msg("&bitlbee", "help") 227 ret = (clis[0].receive().find("identify_methods") != -1) 228 clis[0].send_priv_msg("&bitlbee", "help commands") 229 ret = ret & (clis[0].receive().find("qlist") != -1) 230 return ret 231 232 221 233 def run_tests(failed): 222 234 clis = [] … … 254 266 255 267 if DEFAULTTARGETTEST: 256 perform_test(failed, clis, default_target_test, "Default target") 268 perform_test(failed, clis, default_target_test, "Change default target") 269 270 if HELPTEST: 271 perform_test(failed, clis, help_test, "Ask for help") 257 272 258 273 if failed or SHOWLOG:
Note: See TracChangeset
for help on using the changeset viewer.