def test_raise_error_only_comma_msrp(self): msrp = "," with self.assertRaises(ValidationError): validate_msrp_format(msrp)
def test_raise_error_no_country_on_msrp(self): msrp = ",10.00" with self.assertRaises(ValidationError): validate_msrp_format(msrp)
def test_raise_error_invalid_country_code_msrp(self): msrp = "JP,10.00" with self.assertRaises(ValidationError): validate_msrp_format(msrp)
def test_raise_error_no_price_on_msrp(self): msrp = "MXN," with self.assertRaises(ValidationError): validate_msrp_format(msrp)
def test_valid_msrp(self): msrp = "JPY,10.99" self.assertIsNone(validate_msrp_format(msrp))