@httprettified
    def test_get_other_users_also_viewed(self):
        product = G(Product, parent=None)

        params = {
            "user_id": "auser",
            "item_id": 1234
        }

        expected_get_params = {
            "tenantid": ["tenant"],
            "apikey": ["key"],
            "userid": ["auser"],
            "itemid": ["1234"]
        }
        expected_response = product.upc % '{"recommendeditems": {"item": [{"id": %s}]}}'
        HTTPretty.register_uri(HTTPretty.GET, "http://some.com/api/1.0/json/otherusersalsoviewed",
                           body=expected_response,
                           content_type="application/json")

        response = self.gateway.get_other_users_also_viewed(**params)
        get_params = HTTPretty.last_request.querystring
        self.assertEqual(get_params, expected_get_params)
        self.assertEqual(len(response), 1)
        self.assertEqual(response[0]['product'].upc, product.upc)
dataset/ETHPy150Open snowball-one/django-oscar-easyrec/tests/gateway_tests.py/GatewayTest.test_get_other_users_also_viewed/swapped operands of `%`