+
Its elegance
Its beauty
Its gracefulness
Its bugs
- This MRQ is indeed very graceful
- This is something everyone has to like about this MRQ
- Nah, there isn't any!
+ This MRQ is indeed very graceful
+ This is something everyone has to like about this MRQ
+ Nah, there isn't any!
diff --git a/problem_builder/tests/integration/xml/assessment_2.xml b/problem_builder/tests/integration/xml/assessment_2.xml
index c7543e4e..dcffb26d 100644
--- a/problem_builder/tests/integration/xml/assessment_2.xml
+++ b/problem_builder/tests/integration/xml/assessment_2.xml
@@ -4,13 +4,13 @@
Please answer the questions below.
-
- Yes
- Maybe not
- I don't understand
+
+ Yes
+ Maybe not
+ I don't understand
- Great!
- Ah, damn.
- Really?
+ Great!
+ Ah, damn.
+ Really?
diff --git a/problem_builder/tests/integration/xml/mcq_1.xml b/problem_builder/tests/integration/xml/mcq_1.xml
index 0d73fe4d..47293979 100644
--- a/problem_builder/tests/integration/xml/mcq_1.xml
+++ b/problem_builder/tests/integration/xml/mcq_1.xml
@@ -1,21 +1,21 @@
-
+
Yes
Maybe not
I don't understand
- Great!
- Ah, damn.
- Really?
+ Great!
+ Ah, damn.
+ Really?
-
+
I don't want to rate it
- I love good grades.
- Will do better next time...
- Your loss!
+ I love good grades.
+ Will do better next time...
+ Your loss!
diff --git a/problem_builder/tests/integration/xml/mcq_with_comments_1.xml b/problem_builder/tests/integration/xml/mcq_with_comments_1.xml
index 32540f16..6f119c09 100644
--- a/problem_builder/tests/integration/xml/mcq_with_comments_1.xml
+++ b/problem_builder/tests/integration/xml/mcq_with_comments_1.xml
@@ -1,15 +1,15 @@
-
+
Its elegance
Its beauty
Its gracefulness
Its bugs
- This MRQ is indeed very graceful
- This is something everyone has to like about this MRQ
- This is something everyone has to like about beauty
- Nah, there isn\'t any!
+ This MRQ is indeed very graceful
+ This is something everyone has to like about this MRQ
+ This is something everyone has to like about beauty
+ Nah, there isn\'t any!
diff --git a/problem_builder/tests/integration/xml/mcq_with_fixed_height_tips.xml b/problem_builder/tests/integration/xml/mcq_with_fixed_height_tips.xml
index 4a4dee69..a9ce0520 100644
--- a/problem_builder/tests/integration/xml/mcq_with_fixed_height_tips.xml
+++ b/problem_builder/tests/integration/xml/mcq_with_fixed_height_tips.xml
@@ -1,13 +1,13 @@
-
+
Yes
Maybe not
I don't understand
- Great!
- Ah, damn.
- Really?
+ Great!
+ Ah, damn.
+ Really?
diff --git a/problem_builder/tests/integration/xml/mcq_with_html_choices.xml b/problem_builder/tests/integration/xml/mcq_with_html_choices.xml
index 2a0c6112..f83de791 100644
--- a/problem_builder/tests/integration/xml/mcq_with_html_choices.xml
+++ b/problem_builder/tests/integration/xml/mcq_with_html_choices.xml
@@ -1,15 +1,15 @@
-
+
Its elegance
Its beauty
Its gracefulness
Its bugs
- This MCQ is indeed very graceful
- This is something everyone has to like about this MCQ
- This is something everyone has to like about beauty
- Nah, there isn\'t any!
+ This MCQ is indeed very graceful
+ This is something everyone has to like about this MCQ
+ This is something everyone has to like about beauty
+ Nah, there isn\'t any!
diff --git a/problem_builder/tests/integration/xml/mrq_with_html_choices.xml b/problem_builder/tests/integration/xml/mrq_with_html_choices.xml
index ffcb95ee..4d234e45 100644
--- a/problem_builder/tests/integration/xml/mrq_with_html_choices.xml
+++ b/problem_builder/tests/integration/xml/mrq_with_html_choices.xml
@@ -1,15 +1,15 @@
-
+
Its elegance
Its beauty
Its gracefulness
Its bugs
- This MRQ is indeed very graceful
- This is something everyone has to like about this MRQ
- This is something everyone has to like about beauty
- Nah, there aren\'t any!
+ This MRQ is indeed very graceful
+ This is something everyone has to like about this MRQ
+ This is something everyone has to like about beauty
+ Nah, there aren\'t any!
diff --git a/problem_builder/tests/integration/xml/theme_1.xml b/problem_builder/tests/integration/xml/theme_1.xml
index c7543e4e..2872d862 100644
--- a/problem_builder/tests/integration/xml/theme_1.xml
+++ b/problem_builder/tests/integration/xml/theme_1.xml
@@ -4,13 +4,13 @@
Please answer the questions below.
-
+
Yes
Maybe not
I don't understand
- Great!
- Ah, damn.
- Really?
+ Great!
+ Ah, damn.
+ Really?
diff --git a/problem_builder/tip.py b/problem_builder/tip.py
index 6d32671d..5c861991 100644
--- a/problem_builder/tip.py
+++ b/problem_builder/tip.py
@@ -132,7 +132,7 @@ def parse_xml(cls, node, runtime, keys, id_generator):
"""
block = runtime.construct_xblock_from_class(cls, keys)
- block.values = [unicode(val).strip() for val in node.get('values', '').split(',')]
+ block.values = cls.values.from_string(node.get('values', '[]'))
block.width = node.get('width', '')
block.height = node.get('height', '')
diff --git a/problem_builder/v1/tests/test_upgrade.py b/problem_builder/v1/tests/test_upgrade.py
index bc2143f2..828a9f71 100644
--- a/problem_builder/v1/tests/test_upgrade.py
+++ b/problem_builder/v1/tests/test_upgrade.py
@@ -57,8 +57,7 @@ def setUp(self):
@XBlock.register_temp_plugin(MentoringBlock, "mentoring")
def test_xml_upgrade(self, file_name):
"""
- Convert a v1 mentoring block to v2 and then compare the resulting block to a
- pre-converted one.
+ Convert a v1 mentoring block to v2 and then compare the resulting block to a pre-converted one.
"""
with open("{}/{}_old.xml".format(xml_path, file_name)) as xmlfile:
temp_node = etree.parse(xmlfile).getroot()
diff --git a/problem_builder/v1/tests/xml/v1_upgrade_a_new.xml b/problem_builder/v1/tests/xml/v1_upgrade_a_new.xml
index a33eaa28..7dd3e2bf 100644
--- a/problem_builder/v1/tests/xml/v1_upgrade_a_new.xml
+++ b/problem_builder/v1/tests/xml/v1_upgrade_a_new.xml
@@ -6,30 +6,30 @@
Please answer the questions below.