Changeset 3d4cb51


Ignore:
Timestamp:
2021-03-18T10:40:41Z (4 years ago)
Author:
/ <>
Children:
51f144a
Parents:
68ba9f4
Message:

help

File:
1 edited

Legend:

Unmodified
Added
Removed
  • .tests/test1.py

    r68ba9f4 r3d4cb51  
    1111STATUSTEST = True
    1212DEFAULTTARGETTEST = True
     13HELPTEST = True
    1314SHOWLOG = False
    1415SHOWTESTLOG = True
     
    170171    ret = (clis[0].receive().find("jabber - Status message: "+status) != -1)
    171172
     173    clis[1].send_priv_msg("&bitlbee", "set")
     174    ret = ret & (clis[1].receive().find(status) != -1)
     175
    172176    clis[1].send_priv_msg("&bitlbee", "set -del status")
    173177    clis[0].send_priv_msg("&bitlbee", "info "+clis[1].nick)
     
    219223    return ret
    220224
     225def 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
    221233def run_tests(failed):
    222234    clis = []
     
    254266
    255267    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")
    257272
    258273    if failed or SHOWLOG:
Note: See TracChangeset for help on using the changeset viewer.