Example #1
0
def test_invalid_pong_interval_throws_error():
    config = Config()
    with pytest.raises(ValueError):
        config.pong_interval = -1
    with pytest.raises(ValueError):
        config.pong_interval = 0.1
    with pytest.raises(ValueError):
        config.pong_interval = 250
Example #2
0
def test_valid_pong_intervals():
    config = Config()
    config.pong_interval = 1
    config.pong_interval = 0
    config.pong_interval = 239