def test_empty(self): entry = "" assert not is_completed(entry)
def test_blank_line(self): entry = "\n" assert not is_completed(entry)
def test_whitespace(self): entry = " " assert not is_completed(entry)
def test_wip(self): entry = "[\\] do this" assert not is_completed(entry)
def test_text(self): entry = "do this" assert not is_completed(entry)
def test_undone_with_subtasks(self): entry = "[ ] do this\n" "\t[x] a subtask\n" "\t[x] another subtask" assert not is_completed(entry)
def test_undone(self): entry = "[ ] do this" assert not is_completed(entry)
def test_scheduled(self): entry = "[o] do this [$TOMORROW$]" assert is_completed(entry)
def test_invalid(self): entry = "[-] do this" assert is_completed(entry)
def test_done(self): entry = "[x] do this" assert is_completed(entry)