def has_valid_location(self, value):
        return int(value[:2]) in CN_LOCATION_CODES
Test function decorator which asserts that a warning has been raised
dataset/ETHPy150Open AppScale/appscale/AppServer/lib/django-1.4/django/contrib/localflavor/cn/forms.py/CNIDCardField.has_valid_location--crossover with--dataset/ETHPy150Open STIXProject/python-stix/stix/test/__init__.py/assert_warnings