def METHOD_NAME(self, expected_result):
    response = self.client.get(
        reverse(
            "speaker_profile", args=[self.speaker.pk, self.speaker.slug]
        )
    )
    if expected_result:
        self.assertEqual(response.status_code, 200)
    else:
        self.assertEqual(response.status_code, 404)
    return response