Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def _run(self, errors, expected, expected_max):
found, max_below = _find_sequences(np.asarray(errors), self.THRESHOLD)
np.testing.assert_array_equal(found, expected)
assert max_below == expected_max