'Test primitive tab insertion.'

def test_insert(self):

    course = CourseFactory.create()
    tabs.primitive_insert(course, 2, 'notes', 'aname')
    self.assertEquals(course.tabs[2], {'type': 'notes', 'name': 'aname'})
    with self.assertRaises(ValueError):
        tabs.primitive_insert(course, 0, 'notes', 'aname')
    with self.assertRaises(ValueError):
        tabs.primitive_insert(course, 3, 'static_tab', 'aname')
