def test_remove_credentials_calls_delete_password_for_each_credential(
         self, mock_keyring_name, mock_delete_password):
     credential_provider = KeystoreCredentialsProvider()
     credential_provider.remove_credentials(MockConjurrcData.conjur_url)
     calls = [
         call(TEST_HOSTNAME, MACHINE),
         call(TEST_HOSTNAME, USERNAME),
         call(TEST_HOSTNAME, PASSWORD)
     ]
     mock_delete_password.assert_has_calls(calls)
 def test_remove_credentials_raises_keyring_error_when_delete_password_raises_keyring_error(
         self, mock_keystore_wrapper, another_mock_keystore_wrapper):
     credential_provider = KeystoreCredentialsProvider()
     with self.assertRaises(Exception):
         credential_provider.remove_credentials(MockConjurrcData.conjur_url)