Пример #1
0
def test_validator_with_testapp():
    assert validators.validate_content('blog:020:phase') == 'blog:020:phase'
Пример #2
0
def test_validator_invalid_phase():
    with pytest.raises(exceptions.ValidationError):
        validators.validate_content('noapp:020:nophase')