Esempio n. 1
0
def test_validator_with_testapp():
    assert validators.validate_content('blog:020:phase') == 'blog:020:phase'
Esempio n. 2
0
def test_validator_invalid_phase():
    with pytest.raises(exceptions.ValidationError):
        validators.validate_content('noapp:020:nophase')