From f035d5602dff8efbabcfa391978a256a3327334f Mon Sep 17 00:00:00 2001 From: Calen Pennington Date: Mon, 2 Jul 2012 12:24:07 -0400 Subject: [PATCH] Keep abtest children in a consistent order (makes testing easier) --- common/lib/xmodule/abtest_module.py | 1 + 1 file changed, 1 insertion(+) diff --git a/common/lib/xmodule/abtest_module.py b/common/lib/xmodule/abtest_module.py index f6057171e5..c3e32732f3 100644 --- a/common/lib/xmodule/abtest_module.py +++ b/common/lib/xmodule/abtest_module.py @@ -101,6 +101,7 @@ class ABTestDescriptor(RawDescriptor, XmlDescriptor): raise InvalidDefinitionError("ABTest portions must add up to less than or equal to 1") definition['data']['group_portions'][DEFAULT] = default_portion + definition['children'].sort() return definition