def testFilterForceFilter(self):
    filter = unusual_trip_filter.UnusualTripFilter(0.1, force=True, quiet=False)
    input = self.GetPath('tests', 'data', 'filter_unusual_trips')
    loader = transitfeed.Loader(input, extra_validation=True)
    schedule = loader.Load()
    schedule.trips['CITY2'].trip_type = 'odd-trip'
    filter.filter(schedule)
    trip1 = schedule.trips['CITY1']
    self.assertEquals(trip1['trip_type'], '0')
    trip2 = schedule.trips['CITY2']
    self.assertEquals(trip2['trip_type'], '0')
Test that force==True does set default values
dataset/ETHPy150Open google/transitfeed/tests/testunusual_trip_filter.py/UnusualTripFilterTestCase.testFilterForceFilter