irc.tests package
Submodules
irc.tests.test_bot module
-
class
irc.tests.test_bot.DisconnectHandler(request, client_address, server)[source]
Bases: irc.server.IRCClient
Immediately disconnect the client after connecting
-
handle()[source]
-
class
irc.tests.test_bot.TestBot[source]
Bases: object
-
test_construct_bot()[source]
-
test_namreply_no_channel()[source]
If channel is ‘*’, _on_namreply should not crash.
Regression test for #22
-
test_reconnects_are_stable(disconnecting_server)[source]
Ensure that disconnects from the server don’t lead to
exponential growth in reconnect attempts.
-
class
irc.tests.test_bot.TestChannel[source]
Bases: object
-
test_add_remove_nick()[source]
-
test_change_nick()[source]
-
test_has_user()[source]
-
test_remove_add_clears_mode()[source]
-
test_set_mode_clear_mode()[source]
-
class
irc.tests.test_bot.TestServerSpec[source]
Bases: object
-
test_with_host()[source]
-
test_with_host_and_password()[source]
-
test_with_host_and_port()[source]
-
test_with_host_and_port_and_password()[source]
-
irc.tests.test_bot.disconnecting_server()[source]
An IRC server that disconnects the client immediately.
irc.tests.test_client module
-
class
irc.tests.test_client.TestHandlers[source]
Bases: object
-
test_handlers_same_priority()[source]
Two handlers of the same priority should still compare.
-
irc.tests.test_client.test_command_without_arguments(self)[source]
A command without arguments should not crash
-
irc.tests.test_client.test_privmsg_fails_on_embedded_carriage_returns(socket_mod)[source]
-
irc.tests.test_client.test_privmsg_sends_msg(socket_mod)[source]
-
irc.tests.test_client.test_version()[source]
irc.tests.test_schedule module
Module contents