[lang-ref] ( is_lower ) ( python )
@pytest.mark.parametrize(
'text, expected',
[
('ABC', False),
('Abc', False),
('abc', True),
('abc def', True), # spaces are ignored
(' ', False), # returns False when there are no letters
('', False),
],
)
def test_is_lower(text, expected):
# islower
assert text.islower() is expected