def METHOD_NAME(self):
    # Arrange
    expected_passphrase = '1cde00b4-bea9-48fc-819b-bd17c578a22c'
    with patch('api.lcp.controller.LCPCredentialFactory') as credential_factory_constructor_mock:
        credential_factory = create_autospec(spec=LCPCredentialFactory)
        credential_factory.get_patron_passphrase = MagicMock(return_value=expected_passphrase)
        credential_factory_constructor_mock.return_value = credential_factory
        patron = self.default_patron
        manager = CirculationManager(self._db, testing=True)
        controller = LCPController(manager)
        controller.authenticated_patron_from_request = MagicMock(return_value=patron)
        url = 'http://circulationmanager.org/lcp/hint'
        with self.app.test_request_context(url):
            request.library = self._default_library
            # Act
            result1 = controller.get_lcp_passphrase()
            result2 = controller.get_lcp_passphrase()
            # Assert
            for result in [result1, result2]:
                assert result.status_code == 200
                assert ('passphrase' in result.json) == True
                assert result.json['passphrase'] == expected_passphrase
            credential_factory.get_patron_passphrase.assert_has_calls(
                [
                    call(self._db, patron),
                    call(self._db, patron)
                ]
            )