def test_build_study_mode_filter_when_full_and_part_time_and_distance_selected(self): params = ['Full-time', 'Part-time', 'Distance learning'] expected = 'distance_learning' actual = build_study_mode_filter(params) self.assertEquals(actual, expected)
def test_build_study_mode_filter_when_part_time_selected(self): params = ['Part-time'] expected = 'part_time' actual = build_study_mode_filter(params) self.assertEquals(actual, expected)
def test_build_study_mode_filter_when_distance_selected(self): params = ['Distance learning'] expected = 'distance_learning' actual = build_study_mode_filter(params) self.assertEquals(actual, expected)
def test_build_study_mode_filter_when_no_params(self): params = [] expected = '' actual = build_study_mode_filter(params) self.assertEquals(actual, expected)