'Make sure that the static tabs are imported correctly'

def test_static_tabs_import(self):

    modulestore = XMLModuleStore(DATA_DIR, source_dirs=['toy'])
    location_tab_syllabus = Location('edX', 'toy', '2012_Fall', 'static_tab', 'syllabus', None)
    toy_tab_syllabus = modulestore.get_item(location_tab_syllabus)
    self.assertEqual(toy_tab_syllabus.display_name, 'Syllabus')
    self.assertEqual(toy_tab_syllabus.course_staff_only, False)
    location_tab_resources = Location('edX', 'toy', '2012_Fall', 'static_tab', 'resources', None)
    toy_tab_resources = modulestore.get_item(location_tab_resources)
    self.assertEqual(toy_tab_resources.display_name, 'Resources')
    self.assertEqual(toy_tab_resources.course_staff_only, True)
