'Tests the get_tab methods in CourseTabList'

def test_get_tab_by_methods(self):

    self.course.tabs = self.all_valid_tab_list
    for tab in self.course.tabs:
        self.assertEquals(xmodule_tabs.CourseTabList.get_tab_by_type(self.course.tabs, tab.type), tab)
        self.assertEquals(xmodule_tabs.CourseTabList.get_tab_by_id(self.course.tabs, tab.tab_id), tab)
