def test_has_spaces_without_spaces():
    assert admin.has_spaces('John') == 'John'
def test_has_spaces_without_spaces():
    assert admin.has_spaces("John") == "John"
def test_has_spaces_with_spaces():
    with pytest.raises(ValidationError):
        admin.has_spaces(' J o h n ')
def test_has_spaces_with_spaces():
    with pytest.raises(ValidationError):
        admin.has_spaces(" J o h n ")