Revision 6ee6677e snf-django-lib/snf_django/utils/testing.py

b/snf-django-lib/snf_django/utils/testing.py
132 132
    with patch("snf_django.lib.api.get_token") as get_token:
133 133
        get_token.return_value = "DummyToken"
134 134
        with patch('astakosclient.AstakosClient.get_user_info') as m:
135
            m.return_value = {"uuid": user}
135
            m.return_value = {"uuid": unicode(user, 'utf8')}
136 136
            with patch('astakosclient.AstakosClient.get_quotas') as m2:
137 137
                m2.return_value = {
138 138
                    "system": {

Also available in: Unified diff