Revision e407f159 snf-cyclades-app/synnefo/helpdesk/tests.py
b/snf-cyclades-app/synnefo/helpdesk/tests.py | ||
---|---|---|
56 | 56 |
def __init__(*args, **kwargs): |
57 | 57 |
pass |
58 | 58 |
|
59 |
def get_username(self, token, uuid):
|
|
59 |
def get_username(self, uuid): |
|
60 | 60 |
try: |
61 | 61 |
return USERS_UUIDS.get(uuid)['displayname'] |
62 | 62 |
except TypeError: |
63 | 63 |
return None |
64 | 64 |
|
65 |
def get_uuid(self, token, display_name):
|
|
65 |
def get_uuid(self, display_name): |
|
66 | 66 |
try: |
67 | 67 |
return USERS_DISPLAYNAMES.get(display_name)['uuid'] |
68 | 68 |
except TypeError: |
Also available in: Unified diff