# coding: utf-8
"""
Tests for newforms/util.py module.
"""
util_tests = r"""
>>> from django.newforms.util import *
>>> from django.utils.translation import ugettext_lazy
###################
# ValidationError #
###################
# Can take a string.
>>> print ValidationError("There was an error.").messages
# Can take a unicode string.
>>> print ValidationError(u"Not \u03C0.").messages
# Can take a lazy string.
>>> print ValidationError(ugettext_lazy("Error.")).messages
# Can take a list.
>>> print ValidationError(["Error one.", "Error two."]).messages
# Can take a mixture in a list.
>>> print ValidationError(["First error.", u"Not \u03C0.", ugettext_lazy("Error.")]).messages
"""