'Create users for use in the tests'

def setUp(self):

    super(TpaAPITestCase, self).setUp()
    google = self.configure_google_provider(enabled=True)
    self.configure_facebook_provider(enabled=True)
    self.configure_linkedin_provider(enabled=False)
    self.enable_saml()
    testshib = self.configure_saml_provider(name='TestShib', enabled=True, idp_slug=IDP_SLUG_TESTSHIB)
    for username in LINKED_USERS:
        make_superuser = (username == ADMIN_USERNAME)
        make_staff = ((username == STAFF_USERNAME) or make_superuser)
        user = UserFactory.create(username=username, password=PASSWORD, is_staff=make_staff, is_superuser=make_superuser)
        UserSocialAuth.objects.create(user=user, provider=google.backend_name, uid='{}@gmail.com'.format(username))
        UserSocialAuth.objects.create(user=user, provider=testshib.backend_name, uid='{}:remote_{}'.format(testshib.idp_slug, username))
    UserFactory.create(username=CARL_USERNAME, password=PASSWORD)
