'Creates a test user with the given permissions and name
:param app_access_token:
The application\'s access token
:param permissions:
The list of permissions to request for the test user
:param name:
Optionally specify the name'

@classmethod
def create_test_user(cls, app_access_token, permissions=None, name=None):

    if (not permissions):
        permissions = ['read_stream', 'publish_stream', 'user_photos,offline_access']
    if isinstance(permissions, list):
        permissions = ','.join(permissions)
    default_name = ('Permissions    %s' % permissions.replace(',', '    ').replace('_', ''))
    name = (name or default_name)
    kwargs = {'access_token': app_access_token, 'installed': True, 'name': name, 'method': 'post', 'permissions': permissions}
    path = ('%s/accounts/test-users' % facebook_settings.FACEBOOK_APP_ID)
    test_user_data = cls.request(path, **kwargs)
    test_user_data['name'] = name
    test_user = TestUser(test_user_data)
    return test_user
