def test_doesnt_allow_negative_upper_limit(self):
        band = models.WeightBand(upper_limit=D('-0.1'))
        with self.assertRaises(ValidationError) as cm:
            band.full_clean()
        self.assertTrue('upper_limit' in cm.exception.message_dict)
dataset/ETHPy150Open django-oscar/django-oscar/tests/unit/shipping/model_tests.py/TestWeightBand.test_doesnt_allow_negative_upper_limit/original