def METHOD_NAME(self):
    expected = (
        (self.partner1, self._make_expected_data(self.partner1, 1)),
        (
            self.partner2,
            self._make_expected_data(
                self.partner2, 2, allowed_codes=["cat2", "cat3"]
            ),
        ),
        (
            self.partner3,
            self._make_expected_data(self.partner3, 3, allowed_codes=["cat3"]),
        ),
    )
    for partner, expected_data in expected:
        provider = self._get_provider(partner)
        res = provider.get_party()
        self.assertEqual(res, expected_data)