def test_inc_one(): b = Book.find_by_title('油层物理') b.increase_one()
def test_inc(): b = Book.find_by_title('渗流力学') b.increase(10)
def test_dec(): b = Book.find_by_title('油层物理') b.decrease(1)
def test_dec_one(): b = Book.find_by_title('油层物理') b.decrease_one()