Exemplo n.º 1
0
def test_not_empty_empty_list():
    with pytest.raises(ValidationError):
        not_empty([])
Exemplo n.º 2
0
def test_not_empty_list():
    not_empty(['hello', 'world'])
Exemplo n.º 3
0
def test_not_empty_empty_str():
    with pytest.raises(ValidationError):
        not_empty('')
Exemplo n.º 4
0
def test_not_empty_str():
    not_empty('hello')