def test_charges3_novel_greater_than_min_days(): book = Book(return_date=date.today() + timedelta(days=4)) book.book_type = "NOVEL" assert book.charges3 == 6
def test_charges3_fiction_1_days(): book = Book(return_date=date.today() + timedelta(days=1)) book.book_type = "FICTION" assert book.charges3 == 3
def test_charges3_novel_less_than_min_days(): book = Book() book.book_type = "NOVEL" assert book.charges3 == 4.5