예제 #1
0
파일: tests.py 프로젝트: ardenn/lori-book
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
예제 #2
0
파일: tests.py 프로젝트: ardenn/lori-book
def test_charges3_fiction_1_days():
    book = Book(return_date=date.today() + timedelta(days=1))
    book.book_type = "FICTION"
    assert book.charges3 == 3
예제 #3
0
파일: tests.py 프로젝트: ardenn/lori-book
def test_charges3_novel_less_than_min_days():
    book = Book()
    book.book_type = "NOVEL"
    assert book.charges3 == 4.5