def validate_temperature_scale(scale):
    if scale not in [ t[0] for t in TEMPERATURE_SCALE_CHOICES ]:
        raise ValidationError("Invalid scale: please choose one from the list")
Tests that the __unicode__() method displays the correct thing.
dataset/ETHPy150Open fp7-ofelia/ocf/expedient/doc/plugins/samples/plugin/sample_resource/utils/validators.py/validate_temperature_scale--crossover with--dataset/ETHPy150Open malcolmt/django-acacia/acacia/tests/test_models.py/TopicTest.test_unicode