Beispiel #1
0
def test_greater_than_or_equal_returns_value_from_series(data):
    series_key = data.draw(sampled_from(ESeries))
    value = data.draw(sampled_from(series(series_key)))
    assert find_greater_than_or_equal(series_key, value) == value
Beispiel #2
0
def test_series_cardinality(series_key):
    assert len(series(series_key)) == series_key
Beispiel #3
0
def test_illegal_series_key_raises_value_error():
    with raises(ValueError):
        series(13)
Beispiel #4
0
def test_nearest_returns_value_from_series(data):
    series_key = data.draw(sampled_from(ESeries))
    value = data.draw(sampled_from(series(series_key)))
    assert find_nearest(series_key, value) == value