@@ -0,0 +1,872 @@
+#!/usr/bin/env python%0A# -*- coding: utf-8 -*-%0A%0Afrom pyxform.tests_v1.pyxform_test_case import PyxformTestCase%0A%0Aclass ValidateUnicodeException(PyxformTestCase):%0A    %22%22%22%0A    Validation errors may include non-ASCII characters. In particular, ODK Validate%0A    uses %CD%8E (small arrow) to indicate where a problem starts.%0A    %22%22%22%0A    def test_validate_unicode_exception(self):%0A        self.assertPyxformXform(%0A            md=%22%22%22%0A            %7C survey  %7C           %7C       %7C       %7C                %7C%0A            %7C         %7C type      %7C name  %7C label %7C calculation    %7C%0A            %7C         %7C calculate %7C bad   %7C bad   %7C $(myField)='1' %7C%0A            %22%22%22,%0A            run_odk_validate=True,%0A            odk_validate_error__contains=%5B%0A                u%22Invalid calculate for the bind attached to %5C%22$%7Bbad%7D%5C%22 : Couldn't understand the expression starting at this point:%22,%0A            %5D)%0A

Add test for unicode characters in Validate errors