示例#1
0
 def test_validate_with_invalid_code(self):
     with raises(ValueError) as e:
         Country.validate('SomeUnknownCode')
     assert str(e.value) == (
         'Could not convert string to country code: SomeUnknownCode')
示例#2
0
 def test_validate_with_invalid_code(self):
     with pytest.raises(ValueError) as e:
         Country.validate('SomeUnknownCode')
     assert str(e.value) == (
         'Could not convert string to country code: SomeUnknownCode'
     )
示例#3
0
 def test_validate_with_valid_codes(self, code):
     Country.validate(code)
示例#4
0
 def test_validate_with_valid_codes(self, code):
     Country.validate(code)