Example #1
0
def create_test_admin(ssl=False, dj_auth_user=None, password=VIDYO_PORTAL_PASSWORD, admin='admin'):
    ad = VidyoAdmin(
        portal_user=admin,
        portal_host='myhost.example.com',
        replay_host='myhost.example.com',
        portal_prefix='431',
        ssl=ssl
    )
    if dj_auth_user:
        ad.dj_auth_user = dj_auth_user
    ad.set_password(password, VIDYO_PORTAL_PASSWORD)
    ad.save()
    return ad