Go to the documentation of this file.00001 from __future__ import absolute_import, division, with_statement
00002 import unittest
00003
00004 from tornado.options import _Options
00005
00006
00007 class OptionsTest(unittest.TestCase):
00008 def setUp(self):
00009 self.options = _Options()
00010 define = self.options.define
00011
00012 define("logging", default="none")
00013 define("help", default=False)
00014
00015 define("port", default=80)
00016
00017 def test_parse_command_line(self):
00018 self.options.parse_command_line(["main.py", "--port=443"])
00019 self.assertEqual(self.options.port, 443)