'Helper method to create SAMLConfiguration and AMLProviderConfig.'

def __create_saml_configurations__(self, saml_config=None, saml_provider_config=None):

    SAMLConfigurationFactory.create(enabled=True, **(saml_config or {}))
    SAMLProviderConfigFactory.create(enabled=True, **(saml_provider_config or {}))
