diff --git a/graphene_django/tests/models.py b/graphene_django/tests/models.py index a33d586..f7a4cf0 100644 --- a/graphene_django/tests/models.py +++ b/graphene_django/tests/models.py @@ -4,7 +4,13 @@ from __future__ import absolute_import from django.db import models from django.utils.translation import ugettext_lazy as _ -CHOICES = ((1, u"1: this漢"), (2, _(u"2: that漢")), (u"_3漢", "__amount__")) +CHOICES = ( + (1, u"this"), + ("2", _(u"that")), + (u"_3漢", "nonascii"), + ("__dunder__", "dunder"), + ("_sunder_", "sunder"), +) class Pet(models.Model): diff --git a/graphene_django/tests/test_types.py b/graphene_django/tests/test_types.py index 424ed96..3dd0c61 100644 --- a/graphene_django/tests/test_types.py +++ b/graphene_django/tests/test_types.py @@ -180,6 +180,8 @@ enum ReporterAChoice { A_1 A_2 _3 + A__DUNDER__ + A_SUNDER_ } enum ReporterReporterType {