def METHOD_NAME(self):
    """Test label rendering."""
    labels = PartLabel.objects.all()
    part = Part.objects.first()
    for label in labels:
        url = reverse('api-part-label-print', kwargs={'pk': label.pk})
        # Check that label printing returns the correct response type
        response = self.get(f'{url}?parts={part.pk}', expected_code=200)
        self.assertIsInstance(response, JsonResponse)
        data = json.loads(response.content)
        self.assertIn('message', data)
        self.assertIn('file', data)
        label_file = data['file']
        self.assertIn('/media/label/output/', label_file)