def test_add_offer(input): offer = Offer() offer.add(input, save=False) assert offer.df.tail(1).to_dict('r')[0] == input