def test_has_header_returns_true_header_with_notes(): test_note = Note("# Out @ 7:45PM\n# Next: T1@7:45PM\nSome notes.") assert test_note.has_header() == True
def test_has_header_returns_true_only_header(): test_note = Note("# Out @ 7:45PM\n# Next: T1@7:45PM") assert test_note.has_header() == True
def test_has_header_returns_true_only_outstring(): test_note = Note("# Out @ 7:45PM") assert test_note.has_header() == True
def test_has_header_returns_true_only_nextstring(): test_note = Note("# Next: T1@7:45PM") assert test_note.has_header() == True
def test_notes_has_header_returns_false_on_none_note(): test_note = Note(None) assert test_note.has_header() == False