[lang-ref] ( is_upper ) ( python )

@pytest.mark.parametrize(
    'text, expected',
    [
        ('ABC', True),
        ('Abc', False),
        ('abc', False),
        ('ABC DEF', True), # spaces are ignored
        (' ', False),      # returns False when there are no alphabets
        ('', False),
        ('123', False),
    ],
)
def test_is_upper(text, expected):
    # isupper
    assert text.isupper() is expected