'Test that management command completes without errors and logs correct information when
one or more saml configurations are enabled.'

@mock.patch('requests.get', mock_get())
def test_fetch_saml_metadata(self):

    self.__create_saml_configurations__()
    expected = '\nDone.\n1    provider(s)    found    in    database.\n0    skipped    and    1    attempted.\n1    updated    and    0    failed.\n'
    call_command('saml', pull=True, stdout=self.stdout)
    self.assertIn(expected, self.stdout.getvalue())
