def test_unsuccessful_get_account_by_email(self):
        """
        Test that request using email by a normal user fails to retrieve Account Info.
        """
        api_client = "client"
        user = "user"
        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=f'email={self.user.email}', expected_status=status.HTTP_403_FORBIDDEN
        )
        assert response.data.get('detail') == 'You do not have permission to perform this action.'