'Test that only backend_names listed in settings.AUTHENTICATION_BACKENDS can be used'

def test_cannot_load_arbitrary_backends(self):

    self.configure_oauth_provider(enabled=True, name='Disallowed', backend_name='disallowed')
    self.enable_saml()
    self.configure_saml_provider(enabled=True, name='Disallowed', idp_slug='test', backend_name='disallowed')
    self.assertEqual(len(provider.Registry.enabled()), 0)
