Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write unittest for One limited example of how your classes might be used is: ` ` ` b 1 = Book ( 3 4

Write unittest for One limited example of how your classes might be used is:
```
b1= Book("345", "Phantom Tollbooth", "Juster")
a1= Album("456","...And His Orchestra", "The Fastbacks")
m1= Movie("567", "Laputa", "Miyazaki")
print(b1.get_author())
print(a1.get_artist())
print(m1.get_director())
p1= Patron("abc", "Felicity")
p2= Patron("bcd", "Waldo")
lib = Library()
lib.add_library_item(b1)
lib.add_library_item(a1)
lib.add_patron(p1)
lib.add_patron(p2)
lib.check_out_library_item("bcd","456")
for _ in range(7):
lib.increment_current_date() # 7 days pass
lib.check_out_library_item("abc","567")
loc = a1.get_location()
lib.request_library_item("abc","456")
for _ in range(57):
lib.increment_current_date() # 57 days pass
p2_fine = p2.get_fine_amount()
lib.pay_fine("bcd", p2_fine)
lib.return_library_item("456")
```
You are responsible for testing all of the required functions to make sure they operate as specified.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database 101

Authors: Guy Kawasaki

1st Edition

0938151525, 978-0938151524

More Books

Students also viewed these Databases questions