Beispiel #1
0
def test_required_str():
    required('hello')
Beispiel #2
0
def test_required_empty():
    required('')
Beispiel #3
0
def test_required_none():
    with pytest.raises(ValidationError):
        required(None)
Beispiel #4
0
def test_required_int():
    required(123)