<s> from __future__ import absolute_import <EOL> import argparse <EOL> import bokeh . command . subcommands . serve as scserve <EOL> def test_create ( ) : <EOL> import argparse <EOL> from bokeh . command . subcommand import Subcommand <EOL> obj = scserve . Serve ( parser = argparse . ArgumentParser ( ) ) <EOL> assert isinstance ( obj , Subcommand ) <EOL> def test_loglevels ( ) : <EOL> assert scserve . LOGLEVELS == ( '<STR_LIT>' , '<STR_LIT:info>' , '<STR_LIT>' , '<STR_LIT:error>' , '<STR_LIT>' ) <EOL> def test_name ( ) : <EOL> assert scserve . Serve . name == "<STR_LIT>" <EOL> def test_help ( ) : <EOL> assert scserve . Serve . help == "<STR_LIT>" <EOL> def test_args ( ) : <EOL> from bokeh . util . string import nice_join <EOL> assert scserve . Serve . args == ( <EOL> ( '<STR_LIT>' , dict ( <EOL> metavar = '<STR_LIT>' , <EOL> type = int , <EOL> help = "<STR_LIT>" , <EOL> default = None <EOL> ) ) , <EOL> ( '<STR_LIT>' , dict ( <EOL> metavar = '<STR_LIT>' , <EOL> type = str , <EOL> help = "<STR_LIT>" , <EOL> default = None , <EOL> ) ) , <EOL> ( '<STR_LIT>' , dict ( <EOL> metavar = '<STR_LIT>' , <EOL> action = '<STR_LIT:store>' , <EOL> default = '<STR_LIT:info>' , <EOL> choices = scserve . LOGLEVELS , <EOL> help = "<STR_LIT>" % nice_join ( scserve . LOGLEVELS ) , <EOL> ) ) , <EOL> ( '<STR_LIT>' , dict ( <EOL> metavar = '<STR_LIT>' , <EOL> action = '<STR_LIT:store>' , <EOL> default = scserve . DEFAULT_LOG_FORMAT , <EOL> help = "<STR_LIT>" % scserve . DEFAULT_LOG_FORMAT . replace ( "<STR_LIT:%>" , "<STR_LIT>" ) , <EOL> ) ) , <EOL> ( '<STR_LIT>' , dict ( <EOL> metavar = '<STR_LIT>' , <EOL> nargs = '<STR_LIT:*>' , <EOL> help = "<STR_LIT>" , <EOL> default = None , <EOL> ) ) , <EOL> ( '<STR_LIT>' , dict ( <EOL> metavar = '<STR_LIT>' , <EOL> nargs = argparse . REMAINDER , <EOL> help = "<STR_LIT>" , <EOL> ) ) , <EOL> ( '<STR_LIT>' , dict ( <EOL> action = '<STR_LIT:store_true>' , <EOL> help = "<STR_LIT>" , <EOL> ) ) , <EOL> ( '<STR_LIT>' , dict ( <EOL> action = '<STR_LIT:store_true>' , <EOL> help = "<STR_LIT>" , <EOL> ) ) , <EOL> ( '<STR_LIT>' , dict ( <EOL> metavar = '<STR_LIT>' , <EOL> action = '<STR_LIT>' , <EOL> type = str , <EOL> help = "<STR_LIT>" , <EOL> ) ) , <EOL> ( '<STR_LIT>' , dict ( <EOL> metavar = '<STR_LIT>' , <EOL> action = '<STR_LIT>' , <EOL> type = str , <EOL> help = "<STR_LIT>" , <EOL> ) ) , <EOL> ( '<STR_LIT>' , dict ( <EOL> metavar = '<STR_LIT>' , <EOL> type = str , <EOL> help = "<STR_LIT>" , <EOL> default = None , <EOL> ) ) , <EOL> ( '<STR_LIT>' , dict ( <EOL> metavar = '<STR_LIT>' , <EOL> type = int , <EOL> help = "<STR_LIT>" , <EOL> default = None , <EOL> ) ) , <EOL> ( '<STR_LIT>' , dict ( <EOL> metavar = '<STR_LIT>' , <EOL> type = int , <EOL> help = "<STR_LIT>" , <EOL> default = None , <EOL> ) ) , <EOL> ( '<STR_LIT>' , dict ( <EOL> metavar = '<STR_LIT>' , <EOL> type = int , <EOL> help = "<STR_LIT>" , <EOL> default = None , <EOL> ) ) , <EOL> ( '<STR_LIT>' , dict ( <EOL> metavar = '<STR_LIT>' , <EOL> type = int , <EOL> help = "<STR_LIT>" , <EOL> default = None , <EOL> ) ) , <EOL> ( '<STR_LIT>' , dict ( <EOL> action = '<STR_LIT:store_true>' , <EOL> help = "<STR_LIT>" , <EOL> ) ) , <EOL> ( '<STR_LIT>' , dict ( <EOL> metavar = '<STR_LIT>' , <EOL> action = '<STR_LIT:store>' , <EOL> default = None , <EOL> choices = scserve . SESSION_ID_MODES , <EOL> help = "<STR_LIT>" % nice_join ( scserve . SESSION_ID_MODES ) , <EOL> ) ) , <EOL> ) </s>
