mirror of
https://github.com/graphql-python/graphene-django.git
synced 2024-11-15 22:27:10 +03:00
11 lines
265 B
Python
11 lines
265 B
Python
# coding: utf-8
|
|
from ..str_converters import to_const
|
|
|
|
|
|
def test_to_const():
|
|
assert to_const('snakes $1. on a "#plane') == "SNAKES_1_ON_A_PLANE"
|
|
|
|
|
|
def test_to_const_unicode():
|
|
assert to_const(u"Skoða þetta unicode stöff") == "SKODA_THETTA_UNICODE_STOFF"
|