def test_close_already_closed_mailbox(): adventure = Adventure() assert(adventure.close(['mailbox']) == "That's already closed.")
def test_empty_mailbox(): adventure = Adventure() adventure.open(['mailbox']) adventure.take(['leaflet']) adventure.close(['mailbox']) assert (adventure.open(['mailbox']) == """You open the mailbox.""")