def test_label(self):
        fields = self.serializer.fields
        assert fields['labeled'].label == 'My label'
A field's label may be set with the `label` argument.
dataset/ETHPy150Open tomchristie/django-rest-framework/tests/test_fields.py/TestLabel.test_label