Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
D
Django-Redis-Cache
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Shared
Django-Redis-Cache
Commits
97d27b77
Commit
97d27b77
authored
Jul 16, 2015
by
Sean Bleier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add unicode_literals for 3.2 compatibility.
parent
ef82a59a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
base_tests.py
tests/testapp/tests/base_tests.py
+6
-4
No files found.
tests/testapp/tests/base_tests.py
View file @
97d27b77
# -*- coding: utf-8 -*-
from
__future__
import
unicode_literals
from
hashlib
import
sha1
import
os
import
subprocess
...
...
@@ -315,10 +317,10 @@ class BaseRedisTestCase(SetupMixin):
def
test_unicode
(
self
):
# Unicode values can be cached
stuff
=
{
u'ascii'
:
u
'ascii_value'
,
u'unicode_ascii'
:
u
'Iñtërnâtiônàlizætiøn1'
,
u'Iñtërnâtiônàlizætiøn'
:
u
'Iñtërnâtiônàlizætiøn2'
,
u'ascii'
:
{
u
'x'
:
1
}
'ascii'
:
'ascii_value'
,
'unicode_ascii'
:
'Iñtërnâtiônàlizætiøn1'
,
'Iñtërnâtiônàlizætiøn'
:
'Iñtërnâtiônàlizætiøn2'
,
'ascii'
:
{
'x'
:
1
}
}
for
(
key
,
value
)
in
stuff
.
items
():
self
.
cache
.
set
(
key
,
value
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment