Resolve conflicts merging master to rc/2013-11-21
This commit is contained in:
@@ -1,29 +0,0 @@
|
||||
"""
|
||||
Tests of the TimeLimitModule
|
||||
|
||||
TODO: This should be a test in common/lib/xmodule. However,
|
||||
actually rendering HTML templates for XModules at this point requires
|
||||
Django (which is storing the templates), so the test can't run in isolation
|
||||
"""
|
||||
from xmodule.modulestore.tests.factories import ItemFactory
|
||||
from xmodule.tests.rendering.core import assert_student_view
|
||||
|
||||
from . import XModuleRenderingTestBase
|
||||
|
||||
|
||||
class TestTimeLimitModuleRendering(XModuleRenderingTestBase):
|
||||
"""
|
||||
Tests of TimeLimitModule html rendering
|
||||
"""
|
||||
def test_with_children(self):
|
||||
block = ItemFactory.create(category='timelimit')
|
||||
block.xmodule_runtime = self.new_module_runtime()
|
||||
ItemFactory.create(category='html', data='<html>This is just text</html>', parent=block)
|
||||
|
||||
assert_student_view(block, block.render('student_view'))
|
||||
|
||||
def test_without_children(self):
|
||||
block = ItemFactory.create(category='timelimit')
|
||||
block.xmodule_runtime = self.new_module_runtime()
|
||||
|
||||
assert_student_view(block, block.render('student_view'))
|
||||
Reference in New Issue
Block a user