示例#1
0
def test_gsm_character_validation(client, msg):
    OnlyGSMCharacters()(None, _gen_mock_field(msg))
示例#2
0
def test_non_gsm_character_validation(data, err_msg, client):
    with pytest.raises(ValidationError) as error:
        OnlyGSMCharacters()(None, _gen_mock_field(data))

    assert str(error.value) == err_msg
示例#3
0
文件: forms.py 项目: trodjr/notify
 def validate_template_content(self, field):
     OnlyGSMCharacters()(None, field)