#NEWLINE# def testFilterAppliedForSpecifiedRouteType( self ) : #NEWLINE# #INDENT# 'Setting integer route_type filters trips of this route type.' #NEWLINE# filter = unusual_trip_filter . UnusualTripFilter ( 0.1 , quiet = True , route_type = 3 ) #NEWLINE# input = self . GetPath ( 'tests' , 'data' , 'filter_unusual_trips' ) #NEWLINE# loader = transitfeed . Loader ( input , extra_validation = True ) #NEWLINE# schedule = loader . Load ( ) #NEWLINE# filter . filter ( schedule ) #NEWLINE# actual_trip_type = schedule . trips [ 'CITY11' ] [ 'trip_type' ] #NEWLINE# self . assertEquals ( actual_trip_type , '1' )