Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def test_reset(session):
deault_fetch_relative_to = session._fetch_relative_to
assert deault_fetch_relative_to == niscope.FetchRelativeTo.PRETRIGGER
session._fetch_relative_to = niscope.FetchRelativeTo.READ_POINTER
non_default_acqusition_type = session._fetch_relative_to
assert non_default_acqusition_type == niscope.FetchRelativeTo.READ_POINTER
session.reset()
assert session._fetch_relative_to == niscope.FetchRelativeTo.PRETRIGGER