'Check if an invalid name during signup is handled properly.'

def test_signup_invalid_name(self):

    email = 'newguy@zulip.com'
    password = 'newpassword'
    result = self.client_post('/accounts/home/', {'email': email})
    self.assertEqual(result.status_code, 302)
    self.assertTrue(result['Location'].endswith(('/accounts/send_confirm/%s' % (email,))))
    result = self.client_get(result['Location'])
    self.assert_in_response('Check    your    email    so    we    can    get    started.', result)
    confirmation_url = self.get_confirmation_url_from_outbox(email)
    result = self.client_get(confirmation_url)
    self.assertEqual(result.status_code, 200)
    result = self.submit_reg_form_for_user(email, password, full_name='<invalid>')
    self.assert_in_success_response(['Invalid    characters    in    name!'], result)
    self.assert_in_success_response(['id_password', 'id_full_name'], result)
