def cb_add(md, type, tid, params): t = params.split() type = t[0] if type == 'RL' or type == 'FL': email = t[2] if type == 'RL': equeue.append('UADD %s\n' % email) elif type == 'FL': equeue.append('ADDFL %s\n' % email) msncb.cb_add(md, type, tid, params)
def cb_add(md, type, tid, params): t = params.split(' ') type = t[0] if type == 'RL' or type == 'FL': email = t[2] nick = urllib.unquote(t[3]) if type == 'RL': out = ('%s (%s) ' % (email, nick)) \ + 'has added you to his contact list' debug(out) beep() elif type == 'FL': out = ('%s (%s) ' % (email, nick)) \ + 'has been added to your contact list' debug(out) msncb.cb_add(md, type, tid, params)
def test_9_cb_add_WithArgs_Pass_With_Only_Valid_Arguments(self): msncb.cb_add(5, 'TestStr', 'TestStr', 'TestStr')
def test_9_cb_add_WithArgs_Pass_With_Only_Valid_Arguments(self): msncb.cb_add(5,'TestStr','TestStr','TestStr')