Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(2)  |  Call(0)  |  Derive(0)  |  Import(2)

src/c/h/chirc-HEAD/tests/test_modes.py   chirc(Download)
import tests.replies as replies
import time
import re
from tests.common import ChircTestCase, ChircClient, ReplyTimeoutException, OPER_PASSWD
from tests.common import channels1, channels2, channels3, channels4
    def test_oper1(self):
        client1 = self._connect_user("user1", "User One")
 
        client1.send_cmd("OPER user1 %s" % OPER_PASSWD)
 
    def test_oper2(self):
        client1 = self._connect_user("user1", "User One")
 
        client1.send_cmd("OPER user1 BAD%s" % OPER_PASSWD)
 
    def _oper(self, client, nick):
        client.send_cmd("OPER %s %s" % (nick, OPER_PASSWD))
 
        reply = self.get_reply(client, expect_code = replies.RPL_YOUREOPER, expect_nick = nick, 
                               expect_nparams = 1,

src/c/h/chirc-HEAD/tests/test_channel.py   chirc(Download)
import tests.replies as replies
import time
import re
from tests.common import ChircTestCase, ChircClient, ReplyTimeoutException, OPER_PASSWD
from tests.common import channels1, channels2, channels3, channels4