def testAPIv2(self):
        res = self.client.get(self.mk_1.id % '/api/v2/member/%s/?format=json')
        self.assertEqual(res.status_code, 200)
        data = json.loads(res.content)
        self.assertEqual(data['name'], 'mk_1')
        self.assertEqual(data['party_name'], self.party_1.name)
        self.assertEqual(data['party_url'], self.party_1.get_absolute_url())
        agendas_uri = data['agendas_uri']
        expected_agendas_uri = '/api/v2/member-agendas/%s/' % self.mk_1.id
        self.assertEqual(agendas_uri, expected_agendas_uri, "Wrong agendas URI returned for member")
        res2 = self.client.get(expected_agendas_uri+'?format=json')
        agendas = json.loads(res2.content)
        self.assertEqual(agendas['agendas'], [
            {'id': 1, 'owner': 'Dr. Jacob', 'absolute_url': '/agenda/1/',
             'score': -33.33, 'name': 'agenda 1', 'rank': 2,
             'min': -33.33, 'max': 33.33,
             'party_min': -33.33, 'party_max': 33.33,
            },
            {'id': 2, 'owner': 'Greenpeace', 'absolute_url': '/agenda/2/',
             'score': 100.0, 'name': 'agenda 2', 'rank': 1,
             'min': -100.0, 'max': 100.0,
             'party_min': -100.0, 'party_max': 100.0,
            }])
dataset/ETHPy150Open ofri/Open-Knesset/mks/tests.py/MKAgendasTest.testAPIv2/swapped operands of `%`