diff options
author | Rogelio Mita <rogeliomita@activitycentral.com> | 2013-07-22 17:49:08 (GMT) |
---|---|---|
committer | Rogelio Mita <rogeliomita@activitycentral.com> | 2013-07-22 17:52:10 (GMT) |
commit | cc720312dd4f6f95b2d2a7edd52d5151b66ae332 (patch) | |
tree | c7ea6abe912226d6430395efb37373e3578ccdf1 /webapp/polls/tests/structure_tests.py | |
parent | 1fae6f21dc0ad0225b929a8c73e28a84d791d1a2 (diff) |
order in options bug fix
Diffstat (limited to 'webapp/polls/tests/structure_tests.py')
-rw-r--r-- | webapp/polls/tests/structure_tests.py | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/webapp/polls/tests/structure_tests.py b/webapp/polls/tests/structure_tests.py index 0c3ef4d..a91f854 100644 --- a/webapp/polls/tests/structure_tests.py +++ b/webapp/polls/tests/structure_tests.py @@ -169,7 +169,8 @@ class StructureTests(MongoTestCase): 'widget_type': Field.TextInput, 'options': { '131212': { - 'text': "text" + 'text': "text", + 'order': 0 } } } @@ -183,7 +184,8 @@ class StructureTests(MongoTestCase): 'widget_type': Field.TextInput, 'options': { '131212': { - 'text': "text" + 'text': "text", + 'order': 0 } } } @@ -199,7 +201,7 @@ class StructureTests(MongoTestCase): 'widget_type': Field.TextInput, 'order': 0 }) - field.add_options({'131212': {'text': "text"}}) + field.add_options({'131212': {'text': "text", 'order': 0}}) group = Group({'name': "group name", 'order': 0}) group.add_field(field, field.order) @@ -210,7 +212,7 @@ class StructureTests(MongoTestCase): 'widget_type': Field.TextInput, 'order': 0 }) - field.add_options({'131212': {'text': "text"}}) + field.add_options({'131212': {'text': "text", 'order': 0}}) group = Group({'name': "group name", 'order': 1}) group.add_field(field, field.order) |