Revision dcb8545f

b/snf-django-lib/snf_django/utils/testing.py
35 35
from contextlib import contextmanager
36 36
from django.test import TestCase
37 37
from django.utils import simplejson as json
38
from synnefo.util import text
38 39
from mock import patch
39 40

  
40 41

  
......
130 131
    with patch("snf_django.lib.api.get_token") as get_token:
131 132
        get_token.return_value = "DummyToken"
132 133
        with patch('astakosclient.AstakosClient.get_user_info') as m:
133
            m.return_value = {"uuid": uenc(user, 'utf8')}
134
            m.return_value = {"uuid": text.uenc(user, 'utf8')}
134 135
            with patch('astakosclient.AstakosClient.get_quotas') as m2:
135 136
                m2.return_value = {
136 137
                    "system": {

Also available in: Unified diff