Files
archived-wlan-testing/lanforge/lanforge-scripts/lanforge_client/strutil.py
2022-11-21 12:31:34 +05:30

21 lines
395 B
Python

def iss(text: str) -> bool:
"""
:param text: string to test
:return: true if text is at lease one non-whitespace character
"""
if text is None:
return False
if (len(text) == 0) or (text.strip() == ""):
return False
return True
def nott(text: str) -> bool:
"""
:param text:
:return: opposite of is
"""
return not iss(text=text)