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

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

src/c/h/chirc-HEAD/tests/test_channel.py   chirc(Download)
    def test_join1(self):
        client1 = self._connect_user("user1", "User One")
 
        client1.send_cmd("JOIN #test")
 
        self._test_join(client1, "user1", "#test")
 
    @score(category="CHANNEL_JOIN")
    def test_join2(self):
        client1 = self._connect_user("user1", "User One")
    def test_join4(self):
        client1 = self._connect_user("user1", "User One")
        client2 = self._connect_user("user2", "User Two")
 
        client1.send_cmd("JOIN #test")
    def test_channel_privmsg_nochannel(self):
        client1 = self._connect_user("user1", "User One")
 
        client1.send_cmd("PRIVMSG #test :Hello")
 

src/c/h/chirc-HEAD/tests/test_modes.py   chirc(Download)
    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 test_user_mode1(self):
        client1 = self._connect_user("user1", "User One")
 
        self._user_mode(client1, "user1", "user1", "+o", expect_relay=False)
 
    @score(category="MODES")
    def test_user_mode2(self):
        client1 = self._connect_user("user1", "User One")
    def test_user_mode3(self):
        client1 = self._connect_user("user1", "User One")
 
        self._user_mode(client1, "user1", "user1", "+a", expect_relay=False)
 

src/c/h/chirc-HEAD/tests/test_privmsg.py   chirc(Download)
    def test_privmsg(self):
        client1 = self._connect_user("user1", "User One")
        client2 = self._connect_user("user2", "User Two")
 
        client1.send_cmd("PRIVMSG user2 :Hello")
    def test_privmsg2(self):
        client1 = self._connect_user("user1", "User One")
        client2 = self._connect_user("user2", "User Two")
 
        for i in range(100):
    def test_privmsg_nonick(self):
        client1 = self._connect_user("user1", "User One")
 
        client1.send_cmd("PRIVMSG user2 :Hello")
 

src/c/h/chirc-HEAD/tests/test_robustness.py   chirc(Download)
    def test_whitespace5(self):
        client1 = self._connect_user("user1", "User One")
 
        client1.send_cmd("  ")
 
    def test_length1(self):
        client1 = self._connect_user("user1", "User One")
        client2 = self._connect_user("user2", "User Two")
 
        base = "PRIVMSG user2 :"
    def test_length2(self):
        client1 = self._connect_user("user1", "User One")
        client2 = self._connect_user("user2", "User Two")
 
        base = "PRIVMSG user2 :"

src/c/h/chirc-HEAD/tests/test_connection.py   chirc(Download)
    def test_connect_2users(self):      
        self._connect_user("user1", "User One")
        self._connect_user("user2", "User Two")
 
    @score(category="CONNECTION_REGISTRATION")
    def test_connect_duplicate_nick(self):
        client1 = self._connect_user("user1", "User One")

src/c/h/chirc-HEAD/tests/test_lusers_motd.py   chirc(Download)
    def test_lusers(self):
        client1 = self._connect_user("user1", "User One")
 
        client1.send_cmd("LUSERS")     
        self._test_lusers(client1, "user1", 
    def test_motd1(self):
        client1 = self._connect_user("user1", "User One")
 
        motd = """AAA
BBB
    def test_motd2(self):
        client1 = self._connect_user("user1", "User One")
 
        motd = """AAA
BBB

src/c/h/chirc-HEAD/tests/test_whois.py   chirc(Download)
    def test_whois1(self):
        client1 = self._connect_user("user1", "User One")
        client2 = self._connect_user("user2", "User Two")
 
        client1.send_cmd("WHOIS user2")
    def test_whois_nonick(self):
        client1 = self._connect_user("user1", "User One")
 
        client1.send_cmd("WHOIS user2")
 

src/c/h/chirc-HEAD/tests/test_unknown.py   chirc(Download)
    def test_unknown1(self):
        client1 = self._connect_user("user1", "User One")
 
        client1.send_cmd("VERSION")
 
    def test_unknown2(self):
        client1 = self._connect_user("user1", "User One")
 
        client1.send_cmd("WHOWAS user2")
 
    def test_unknown3(self):
        client1 = self._connect_user("user1", "User One")
 
        client1.send_cmd("KILL user2 :Bad user")
 

src/c/h/chirc-HEAD/tests/test_ping.py   chirc(Download)
    def test_ping(self):
        client1 = self._connect_user("user1", "User One")
 
        client1.send_cmd("PING")
 
            nick = "user%i" % (i+1)
            username = "User %s" % nick
            client =  self._connect_user(nick, username)
            clients.append( (nick, client) )
 
    def test_pong(self):
        client1 = self._connect_user("user1", "User One")
 
        client1.send_cmd("PONG")