def METHOD_NAME(self, tabs, expected_success):
    if not expected_success:
        with self.assertRaises(InvalidTabsException):
            CourseTabList.validate_tabs(tabs)
    else:
        CourseTabList.validate_tabs(tabs)