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