Commit 9e4a2f59 authored by Christos Stavrakakis's avatar Christos Stavrakakis
Browse files

snf-django: Add missing import

parent 514510fc
......@@ -35,6 +35,7 @@
from contextlib import contextmanager
from django.test import TestCase
from django.utils import simplejson as json
from synnefo.util import text
from mock import patch
......@@ -130,7 +131,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": uenc(user, 'utf8')}
m.return_value = {"uuid": text.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