-Consider a hypothetical magnetic field pointing out of your computer screen. Now imagine an electron traveling from right to leftin the plane of your screen. A diagram of this situation is show below.
+Consider a hypothetical magnetic field pointing out of your computer screen. Now imagine an electron traveling from right to left in the plane of your screen. A diagram of this situation is show below…
a. The magnitude of the force experienced by the electron is proportional the product of which of the following? (Select all that apply.)
-Magnetic field strength
-Electric field strength
-Electric charge of the electron
-Radius of the electron
-Mass of the electron
-Velocity of the electron
+
+Magnetic field strength…
+Electric field strength…
+Electric charge of the electron…
+Radius of the electron…
+Mass of the electron…
+Velocity of the electron…
diff --git a/common/test/data/full/problem/codeinput_demo.xml b/common/test/data/full/problem/codeinput_demo.xml
index 03d8fd8c31..a6662cb69c 100644
--- a/common/test/data/full/problem/codeinput_demo.xml
+++ b/common/test/data/full/problem/codeinput_demo.xml
@@ -2,7 +2,8 @@
- Part 1: Function Types
+
+ Part 1: Function Types…
For each of the following functions, specify the type of its output. You can assume each function is called with an appropriate argument, as specified by its docstring.
diff --git a/common/test/data/full/sequential/Administrivia_and_Circuit_Elements.xml b/common/test/data/full/sequential/Administrivia_and_Circuit_Elements.xml
index 5c4c65f12d..d0239198af 100644
--- a/common/test/data/full/sequential/Administrivia_and_Circuit_Elements.xml
+++ b/common/test/data/full/sequential/Administrivia_and_Circuit_Elements.xml
@@ -3,12 +3,12 @@
- S1E4 has been removed.
+ S1E4 has been removed…
- Minor correction: Six elements (five resistors)
+ Minor correction: Six elements (five resistors)…
diff --git a/common/test/data/full/vertical/vertical_89.xml b/common/test/data/full/vertical/vertical_89.xml
index da15a6751a..a4716366fe 100644
--- a/common/test/data/full/vertical/vertical_89.xml
+++ b/common/test/data/full/vertical/vertical_89.xml
@@ -1,6 +1,6 @@
-
+ Inline content…
diff --git a/common/test/data/full/video/welcome.xml b/common/test/data/full/video/welcome.xml
index 762bbeeaf1..53eef55245 100644
--- a/common/test/data/full/video/welcome.xml
+++ b/common/test/data/full/video/welcome.xml
@@ -1 +1 @@
-
+
diff --git a/lms/djangoapps/courseware/tests/tests.py b/lms/djangoapps/courseware/tests/tests.py
index defbf426cc..b4510dcb3c 100644
--- a/lms/djangoapps/courseware/tests/tests.py
+++ b/lms/djangoapps/courseware/tests/tests.py
@@ -1,3 +1,6 @@
+import logging
+log = logging.getLogger("mitx." + __name__)
+
import json
import os
import time
@@ -20,6 +23,7 @@ from courseware.access import _course_staff_group_name
from courseware.models import StudentModuleCache
from student.models import Registration
+from xmodule.error_module import ErrorDescriptor
from xmodule.modulestore.django import modulestore
from xmodule.modulestore import Location
from xmodule.modulestore.xml_importer import import_from_xml
@@ -279,6 +283,7 @@ class PageLoader(ActivateLoginTestCase):
print "Checking course {0} in {1}".format(course_name, data_dir)
default_class='xmodule.hidden_module.HiddenDescriptor' # 'xmodule.raw_module.RawDescriptor',
load_error_modules=True
+# load_error_modules=False
module_store = XMLModuleStore(
data_dir,
default_class=default_class,
@@ -308,24 +313,40 @@ class PageLoader(ActivateLoginTestCase):
for descriptor in module_store.modules[course_id].itervalues():
n += 1
print "Checking ", descriptor.location.url()
+ log.info('Checking the content returned for page %s', descriptor.location.url())
#print descriptor.__class__, descriptor.location
resp = self.client.get(reverse('jump_to',
kwargs={'course_id': course_id,
'location': descriptor.location.url()}), follow=True)
msg = str(resp.status_code)
if resp.status_code != 200:
- msg = "ERROR " + msg # + ": " + str(resp.request['PATH_INFO'])
+ msg = "ERROR " + msg + ": " + descriptor.location.url()
all_ok = False
num_bad += 1
elif resp.redirect_chain[0][1] != 302:
- msg = "ERROR " + msg
+ msg = "ERROR on redirect from " + descriptor.location.url()
all_ok = False
num_bad += 1
+ content = resp.content
+# contentlines = content.splitlines()
+ if content.find("this module is temporarily unavailable")>=0:
+ msg = "ERROR unavailable module "
+ all_ok = False
+ num_bad += 1
+ elif isinstance(descriptor, ErrorDescriptor):
+ msg = "ERROR error descriptor loaded: "
+ msg = msg + descriptor.definition['data']['error_msg']
+ all_ok = False
+ num_bad += 1
+ log.info('Output the content returned for page %s', descriptor.location.url())
+ log.info('Content returned: %s', content)
print msg
# self.assertTrue(all_ok) # fail fast
print "{0}/{1} good".format(n - num_bad, n)
- self.assertTrue(all_ok)
+ log.info( "{0}/{1} good".format(n - num_bad, n))
+# self.assertTrue(all_ok)
+ self.assertTrue(false)
#@override_settings(MODULESTORE=TEST_DATA_MONGO_MODULESTORE)
@@ -343,8 +364,8 @@ class TestCoursesLoadTestCase(PageLoader):
def test_toy_course_loads(self):
self.check_xml_pages_load('toy', TEST_DATA_DIR, modulestore())
-# def test_full_course_loads(self):
-# self.check_pages_load('full', TEST_DATA_DIR, modulestore())
+ def test_full_course_loads(self):
+ self.check_xml_pages_load('full', TEST_DATA_DIR, modulestore())
@override_settings(MODULESTORE=TEST_DATA_XML_MODULESTORE)