def new_test_user(TEST_USERNAME = TEST_USER_USERNAME, TEST_PASSWORD = TEST_USER_PASSWORD):
    user, created = User.objects.get_or_create(username=TEST_USERNAME, 
                                      first_name='Iurii',
                                      last_name='Garmash',
                                      email='yuri@adlibre.com.au',
                                      is_active = True,)
    if created:
        user.set_password(TEST_PASSWORD)
        user.save()
    #print ('Created user:'+str(user))
    return user
Helper function.
dataset/ETHPy150Open adlibre/Adlibre-TMS/adlibre_tms/apps/tms/tests/helpers.py/new_test_user