Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

20 lines (14 sloc) 0.562 kB
from __future__ import absolute_import, division, with_statement
import unittest
from tornado.options import _Options
class OptionsTest(unittest.TestCase):
def setUp(self):
self.options = _Options()
define = self.options.define
# these are currently required
define("logging", default="none")
define("help", default=False)
define("port", default=80)
def test_parse_command_line(self):
self.options.parse_command_line(["main.py", "--port=443"])
self.assertEqual(self.options.port, 443)
Jump to Line
Something went wrong with that request. Please try again.