Files
edx-platform/lms/djangoapps/courseware/tests/test_draft_modulestore.py
2015-05-07 09:17:26 -04:00

22 lines
728 B
Python

from django.test import TestCase
from nose.plugins.attrib import attr
from xmodule.modulestore.django import modulestore
from opaque_keys.edx.locations import SlashSeparatedCourseKey
@attr('shard_1')
class TestDraftModuleStore(TestCase):
"""
Test the draft modulestore
"""
def test_get_items_with_course_items(self):
store = modulestore()
# fix was to allow get_items() to take the course_id parameter
store.get_items(SlashSeparatedCourseKey('a', 'b', 'c'), qualifiers={'category': 'vertical'})
# test success is just getting through the above statement.
# The bug was that 'course_id' argument was
# not allowed to be passed in (i.e. was throwing exception)