Commit 68e794f9 authored by Christos Stavrakakis's avatar Christos Stavrakakis
Browse files

snf_django: Fix encoding in mocked userid

parent e07a3252
......@@ -35,6 +35,7 @@
from contextlib import contextmanager
from django.test import TestCase
from django.utils import simplejson as json
from synnefo.util.text import uenc
from mock import patch
......@@ -132,7 +133,7 @@ def astakos_user(user):
with patch("snf_django.lib.api.get_token") as get_token:
get_token.return_value = "DummyToken"
with patch('astakosclient.AstakosClient.get_user_info') as m:
m.return_value = {"uuid": unicode(user, 'utf8')}
m.return_value = {"uuid": uenc(user, 'utf8')}
with patch('astakosclient.AstakosClient.get_quotas') as m2:
m2.return_value = {
"system": {
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment