def test_get_account_by_email(self, api_client, user):
        """
        Test that requesting a user email search works.
        """
        client = self.login_client(api_client, user)
        self.create_mock_profile(self.user)
        set_user_preference(self.user, ACCOUNT_VISIBILITY_PREF_KEY, PRIVATE_VISIBILITY)

        response = self.send_get(client, query_parameters='email={}'.format(self.user.email))
        self._verify_full_account_response(response)