Ticket #4929: 4929.patch
| File 4929.patch, 1.5 KB (added by taos, 2 years ago) |
|---|
-
twisted/words/test/test_irc.py
1273 1273 self.lines.append(m) 1274 1274 1275 1275 1276 class ClientListTests(unittest.TestCase): 1277 def setUp(self): 1278 """ 1279 Create a L{DummyClient} to call C{list} on. 1280 """ 1281 self.client = DummyClient() 1276 1282 1283 1284 def test_list(self): 1285 """ 1286 Test if the LIST function actually through 1287 """ 1288 self.client.channel_list() 1289 self.assertEquals(self.client.lines, ['LIST']) 1290 1291 1277 1292 class ClientInviteTests(unittest.TestCase): 1278 1293 """ 1279 1294 Tests for L{IRCClient.invite}. … … 1303 1318 self.assertEquals(self.client.lines, ['INVITE foo #bar']) 1304 1319 1305 1320 1306 1307 1321 class ClientMsgTests(unittest.TestCase): 1308 1322 def setUp(self): 1309 1323 self.client = DummyClient() -
twisted/words/protocols/irc.py
1386 1386 self.sendLine("INVITE %s %s" % (user, channel)) 1387 1387 1388 1388 1389 def channel_list(self): 1390 """ 1391 Attempts to ask for the LIST which is every channel on the server. 1392 1393 @since: 11.0 1394 """ 1395 self.sendLine("LIST") 1396 1389 1397 def topic(self, channel, topic=None): 1390 1398 """ 1391 1399 Attempt to set the topic of the given channel, or ask what it is.
