def test_collectPool():
    game = Game(players=[Player()])
    sq = FreeParking()
    game.setPool(100)
    assert game.getPool() == 100
    sq.run(0,game)
    assert game.getPool() == 0
    assert game.getPlayer(0).getMoney() == 100
Exemple #2
0
def test_payPool():
    game = Game()
    game.addToPool(500)
    assert game.getPool() == 500
    game.addToPool(55)
    assert game.getPool() == 555