Book.py example

This example shows implementing a book class with valid input

python3 book.py
==================================================
Test 1: creating a new book class with book Pride and Prejudice
==================================================
Test 2: testing the toString() method:
      Pride and Prejudice by          Jane Austin (1813)
==================================================
Test 3: test getFilename():
/usr/local/doc/prideandprejudice.txt
==================================================
Test 4: test getAuthor():
Jane Austen
==================================================
Test 5: test getTitle():
Pride and Prejudice
==================================================
Test 6: getting the bookmark and setting the bookmark to 12:
Bookmark is: 0
The updated bookmark is set to: 12
==================================================
Test 7: test getText with first 110 characters:




Pride and Prejudice

by Jane Austen




Chapter 1


It is a truth universally acknowledged, that a single
==================================================
End of testing