def METHOD_NAME(self):
    tenant_in = "Foo Bar"
    self.backend.setting = mock.MagicMock(return_value=None)
    with self.assertRaises(ImproperlyConfigured) as cm:
        self.backend.tenant = tenant_in
    self.assertEqual(
        'Backend "test-mtm" not configured for multi-tenant: '
        "SOCIAL_AUTH_TEST_MTM_MULTI_TENANT setting not found.",
        str(cm.exception),
    )