'Make sure we get back the store type we expect for given mappings'

@ddt.data(*itertools.product((ModuleStoreEnum.Type.mongo, ModuleStoreEnum.Type.split), (True, False)))
@ddt.unpack
def test_duplicate_course_error(self, default_ms, reset_mixed_mappings):

    self._initialize_mixed(mappings={})
    with self.store.default_store(default_ms):
        self.store.create_course('org_x', 'course_y', 'run_z', self.user_id)
        if reset_mixed_mappings:
            self.store.mappings = {}
        with self.assertRaises(DuplicateCourseError):
            self.store.create_course('org_x', 'course_y', 'run_z', self.user_id)
