Changeset 43a257d


Ignore:
Timestamp:
2021-02-25T10:31:39Z (4 years ago)
Author:
/ <>
Children:
c05108c
Parents:
d24e6f7
Message:

with buddy request

File:
1 edited

Legend:

Unmodified
Added
Removed
  • .tests/test1.py

    rd24e6f7 r43a257d  
    5151        return text
    5252
     53    def addJabberBuddy(self, nick):
     54        self.sendPrivMsg("&bitlbee", "add 0 " + nick+"@localhost")
     55
     56    def acceptJabberRequest(self):
     57        recent = self.receive()
     58        if recent.find("not in your buddy list") == -1:
     59            print("No request found")
     60            return
     61        self.sendPrivMsg("&bitlbee", "yes")
     62
    5363def runTests():
    5464    clis = []
     
    6070    a, b = clis[0], clis[1]
    6171
     72    a.addJabberBuddy(b.nick)
     73    b.acceptJabberRequest()
    6274    a.sendPrivMsg(b.nick, 'ohai qtie')
     75
    6376    a.receive()
    6477    b.receive()
     
    6881        print('Receiver Log:' + b.log)
    6982        sys.exit(1)
     83    print("Message test successful")
    7084
    7185if __name__ == "__main__":
Note: See TracChangeset for help on using the changeset viewer.