Beispiel #1
0
def test_getAuthor():
    b1 = Book("The Shining", "King, Stephen", 1977)
    assert b1.getAuthor() == "King, Stephen"
Beispiel #2
0
def main():
    book1 = Book("The Cat in the Hat")
    print(book1.getTitle())
    book1.setAuthor("Dr. Seuss")
    print(book1.getAuthor())