'Removing a backend configured in AUTHENTICATION_BACKENDS makes already
logged-in users disconnect.'

@override_settings(AUTHENTICATION_BACKENDS=[backend])
def test_changed_backend_settings(self):

    self.assertTrue(self.client.login(username=self.TEST_USERNAME, password=self.TEST_PASSWORD))
    request = HttpRequest()
    request.session = self.client.session
    with self.settings(AUTHENTICATION_BACKENDS=['django.contrib.auth.backends.ModelBackend']):
        user = get_user(request)
        self.assertIsNotNone(user)
        self.assertTrue(user.is_anonymous)
