def test_deal_sell(): p1 = Player(100) r1 = RealState(50, 5) r1.deal(p1) assert r1.owner_is(p1) assert p1.balance == 50
def test_deal_rent(): p1 = Player(100) p2 = Player(0) r2 = RealState(50, 5, owner=p2) r2.deal(p1) assert p2.balance == 5 assert p1.balance == 95