@@ -0,0 +1,940 @@
+# ActivitySim%0A# Copyright (C) 2014-2015 Synthicity, LLC%0A# See full license in LICENSE.txt.%0A%0A%0Aimport pytest%0Aimport os%0Aimport pandas as pd%0Aimport pandas.util.testing as pdt%0Afrom ..mandatory_tour_frequency import process_mandatory_tours%0A%0A%0Adef test_mtf():%0A    persons = pd.DataFrame(%7B%0A        %22is_worker%22: %5BTrue, True, False%5D,%0A        %22mandatory_tour_frequency%22: %5B%22work1%22, %22work_and_school%22, %22school2%22%5D%0A    %7D, index=%5B10, 20, 30%5D)%0A%0A    mandatory_tours = process_mandatory_tours(persons)%0A%0A    pdt.assert_series_equal(%0A        mandatory_tours.person_id,%0A        pd.Series(%0A            %5B10, 20, 20, 30, 30%5D, index=%5B0, 1, 2, 3, 4%5D))%0A%0A    pdt.assert_series_equal(%0A        mandatory_tours.tour_type,%0A        pd.Series(%0A            %5B'work', 'work', 'school', 'school', 'school'%5D,%0A            index=%5B0, 1, 2, 3, 4%5D))%0A%0A    pdt.assert_series_equal(%0A        mandatory_tours.tour_num,%0A        pd.Series(%0A            %5B1, 1, 2, 1, 2%5D, index=%5B0, 1, 2, 3, 4%5D))%0A

add file to test mandatory tour frequency utility function