'If user account creation fails, we should not create a comments service user'

@mock.patch('student.models.Registration.register', side_effect=Exception)
def test_cs_user_not_created(self, register, request):

    try:
        self.client.post(self.url, self.params)
    except:
        pass
    with self.assertRaises(User.DoesNotExist):
        User.objects.get(username=self.username)
    self.assertTrue(register.called)
    self.assertFalse(request.called)
