Update test.py

added is_blank function