def METHOD_NAME(self):
    """Test primitive tab insertion."""
    course = CourseFactory.create()
    tabs.primitive_insert(course, 2, 'pdf_textbooks', 'aname')
    assert course.tabs[2] == {'type': 'pdf_textbooks', 'name': 'aname'}
    with self.assertRaises(ValueError):
        tabs.primitive_insert(course, 0, 'pdf_textbooks', 'aname')
    with self.assertRaises(ValueError):
        tabs.primitive_insert(course, 3, 'static_tab', 'aname')