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
def test_series_cardinality(series_key): assert len(series(series_key)) == series_key
def test_illegal_series_key_raises_value_error(): with raises(ValueError): series(13)
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