def test_b_less_than_zero(self): builder = Builder() builder.b(-1) assert builder._b == 0
def test_b_higher_than_one(self): builder = Builder() builder.b(1.5) assert builder._b == 1
def test_b_within_range(self): builder = Builder() builder.b(0.5) assert builder._b == 0.5