def test_raises_on_negative_percentile():
    with assert_raises(Exception):
        percentile_binding_measure.value_is_binder(-1, cutoff=percentile_cutoff)
def test_raises_on_percentile_greater_than_100():
    with assert_raises(Exception):
        percentile_binding_measure.value_is_binder(101, cutoff=percentile_cutoff)
def test_percentile_value_cutoff():
    assert percentile_binding_measure.value_is_binder(1.0,
        cutoff=percentile_cutoff)
    assert not percentile_binding_measure.value_is_binder(3.0,
        cutoff=percentile_cutoff)