Ejemplo n.º 1
0
def start_with_args(routes, **options):
    """Start the IRC bot and the syslog listen server.

    All arguments (except for routes) are read from the command line.
    """
    args = parse_args()

    start(args.irc_server, args.irc_nickname, args.irc_realname, routes,
          ssl=args.irc_server_ssl, **options)
 def test_irc_server_ssl_option(self, arg_value, expected):
     actual = parse_args(arg_value)
     self.assertEqual(actual.irc_server_ssl, expected)
 def test_parse_irc_server(self, arg_value, expected_host, expected_port):
     actual = parse_args(arg_value)
     self.assertEqual(actual.irc_server.host, expected_host)
     self.assertEqual(actual.irc_server.port, expected_port)
 def test_irc_realname(self, arg_value, expected):
     actual = parse_args(arg_value)
     self.assertEqual(actual.irc_realname, expected)