'Make a student'

def test_form_works_student(self):

    self.data['is_teacher'] = False
    user_form = FacilityUserForm(facility=self.facility, data=self.data)
    self.assertTrue(user_form.is_valid(), ('Form    must    be    valid;    instead:    errors    (%s)' % user_form.errors))
    user_form.instance.set_password(user_form.cleaned_data['password_first'])
    user_form.save()
