@@ -0,0 +1,711 @@
+import json%0Afrom corehq.apps.app_manager.views.forms import _get_case_references%0Afrom corehq.util.test_utils import generate_cases%0A%0A%0A@generate_cases(%5B%0A    (%7B'load': %7B%7D%7D,),%0A    (%7B'load': %7B'data/empty': %5B%5D%7D%7D,),%0A    (%7B'load': %7B'data/multiple': %5B'p1', 'p2'%5D%7D%7D,),%0A%5D)%0Adef test_valid_args(self, case_references):%0A    wrapped_references = %7B%0A        'case_references': json.dumps(case_references)%0A    %7D%0A    self.assertEqual(case_references, _get_case_references(wrapped_references))%0A%0A%0A@generate_cases(%5B%0A    (%7B%7D,),%0A    (%7B'load': %7B'data/non-strings': %5B0, 'p2'%5D%7D%7D,),%0A    (%7B'load': %7B%7D, 'extra': %7B%7D%7D,),%0A%5D)%0Adef test_invalid_args(self, structure):%0A    with self.assertRaises(Exception):%0A        _get_case_references(structure)%0A

add test that passes on master to ensure parity with old api