#NEWLINE# def runTest( self ) : #NEWLINE# #INDENT# route = transitfeed . Route ( ) #NEWLINE# route . route_id = '054C' #NEWLINE# route . route_short_name = '54C' #NEWLINE# route . route_long_name = 'South Side - North Side' #NEWLINE# route . route_type = 7 #NEWLINE# route . Validate ( self . problems ) #NEWLINE# route . route_short_name = '' #NEWLINE# route . route_long_name = '    ' #NEWLINE# self . ValidateAndExpectInvalidValue ( route , 'route_short_name' ) #NEWLINE# route . route_short_name = 'South Side' #NEWLINE# route . route_long_name = '' #NEWLINE# self . ValidateAndExpectInvalidValue ( route , 'route_short_name' ) #NEWLINE# route . route_short_name = 'M7bis' #NEWLINE# route . Validate ( self . problems ) #NEWLINE# route . route_short_name = '54C' #NEWLINE# route . route_long_name = '54C South Side - North Side' #NEWLINE# self . ValidateAndExpectInvalidValue ( route , 'route_long_name' ) #NEWLINE# route . route_long_name = '54C(South Side - North Side)' #NEWLINE# self . ValidateAndExpectInvalidValue ( route , 'route_long_name' ) #NEWLINE# route . route_long_name = '54C-South Side - North Side' #NEWLINE# self . ValidateAndExpectInvalidValue ( route , 'route_long_name' ) #NEWLINE# route . route_short_name = '54C' #NEWLINE# route . route_long_name = '54C' #NEWLINE# self . ValidateAndExpectInvalidValue ( route , 'route_long_name' ) #NEWLINE# route . route_desc = '54C' #NEWLINE# route . route_short_name = '54C' #NEWLINE# route . route_long_name = '' #NEWLINE# self . ValidateAndExpectInvalidValue ( route , 'route_desc' ) #NEWLINE# route . route_desc = None #NEWLINE# route . route_desc = 'South Side - North Side' #NEWLINE# route . route_long_name = 'South Side - North Side' #NEWLINE# self . ValidateAndExpectInvalidValue ( route , 'route_desc' ) #NEWLINE# route . route_desc = None #NEWLINE# route . route_type = 8 #NEWLINE# self . ValidateAndExpectInvalidValue ( route , 'route_type' ) #NEWLINE# route . route_type = ( - 1 ) #NEWLINE# self . ValidateAndExpectInvalidValue ( route , 'route_type' ) #NEWLINE# route . route_type = 7 #NEWLINE# route . route_url = 'www.example.com' #NEWLINE# self . ValidateAndExpectInvalidValue ( route , 'route_url' ) #NEWLINE# route . route_url = None #NEWLINE# route . route_color = 'orange' #NEWLINE# self . ValidateAndExpectInvalidValue ( route , 'route_color' ) #NEWLINE# route . route_color = None #NEWLINE# route . route_text_color = 'orange' #NEWLINE# self . ValidateAndExpectInvalidValue ( route , 'route_text_color' ) #NEWLINE# route . route_text_color = None #NEWLINE# route . route_id = None #NEWLINE# self . ValidateAndExpectMissingValue ( route , 'route_id' ) #NEWLINE# route . route_id = '054C' #NEWLINE# route . route_text_color = None #NEWLINE# route . route_color = '0000FF' #NEWLINE# self . ValidateAndExpectInvalidValue ( route , 'route_color' ) #NEWLINE# route . route_color = '00BF00' #NEWLINE# route . Validate ( self . problems ) #NEWLINE# route . route_color = '005F00' #NEWLINE# self . ValidateAndExpectInvalidValue ( route , 'route_color' ) #NEWLINE# route . route_color = 'FF00FF' #NEWLINE# route . Validate ( self . problems ) #NEWLINE# route . route_text_color = 'FFFFFF' #NEWLINE# route . Validate ( self . problems ) #NEWLINE# route . route_text_color = '00FF00' #NEWLINE# self . ValidateAndExpectInvalidValue ( self , 'route_color' ) #NEWLINE# route . route_text_color = '007F00' #NEWLINE# route . route_color = 'FF0000' #NEWLINE# self . ValidateAndExpectInvalidValue ( route , 'route_color' ) #NEWLINE# route . route_color = '00FFFF' #NEWLINE# route . Validate ( self . problems ) #NEWLINE# route . route_text_color = None #NEWLINE# route . route_color = None #NEWLINE# route . Validate ( self . problems ) #NEWLINE# self . accumulator . AssertNoMoreExceptions ( ) #NEWLINE# route . bikes_allowed = '3' #NEWLINE# self . ValidateAndExpectInvalidValue ( route , 'bikes_allowed' )