Beispiel #1
0
def test_deal_sell():
    p1 = Player(100)
    r1 = RealState(50, 5)

    r1.deal(p1)
    assert r1.owner_is(p1)
    assert p1.balance == 50
Beispiel #2
0
def test_owner_is():
    p1 = Player(0)
    p2 = Player(0)
    r = RealState(50, 5, owner=p1)

    assert r.owner_is(p1) == True
    assert r.owner_is(p2) == False
Beispiel #3
0
def test_sell():
    p = Player(100)
    r = RealState(50, 5)

    r.sell_to(p)

    assert r.owner_is(p)
    assert p.balance == 50