예제 #1
0
def test_defaults_can_be_overidden():
    config = Config()

    config.parse(config_file)

    assert(config.points_per_win() == 5)
    assert(config.points_per_loss() == 6)
    assert(config.points_per_unique_opponent() == 7)
예제 #2
0
def test_defaults():
    config = Config()

    assert(config.points_per_win() == 3)
    assert(config.points_per_loss() == 1)
    assert(config.points_per_unique_opponent() == 2)