def test_out_of_bounds(self): with pytest.raises(IndexError): ros._detection_limit_index(0, self.cohn)
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)
def test_out_of_bounds(self): ros._detection_limit_index(0, self.cohn)
def test_empty(self): assert_equal(ros._detection_limit_index(None, self.empty_cohn), 0)