Example #1
0
 def test_out_of_bounds(self):
     with pytest.raises(IndexError):
         ros._detection_limit_index(0, self.cohn)
Example #2
0
 def test_populated(self):
     assert_equal(ros._detection_limit_index(3.5, self.cohn), 0)
     assert_equal(ros._detection_limit_index(6.0, self.cohn), 3)
     assert_equal(ros._detection_limit_index(12.0, self.cohn), 5)
Example #3
0
 def test_out_of_bounds(self):
     ros._detection_limit_index(0, self.cohn)
Example #4
0
 def test_empty(self):
     assert_equal(ros._detection_limit_index(None, self.empty_cohn), 0)
Example #5
0
 def test_out_of_bounds(self):
     ros._detection_limit_index(0, self.cohn)