def test_is_done(self): expected_result = True self.side_effects_helper['IsDone']['done'] = expected_result self.patched_library.niTClk_IsDone.side_effect = self.side_effects_helper.niTClk_IsDone actual_result = nitclk.is_done(multiple_session_references) assert actual_result == expected_result self.patched_library.niTClk_IsDone.assert_called_once_with(_matchers.ViUInt32Matcher(len(multiple_sessions)), _matchers.ViSessionBufferMatcher(multiple_sessions), _matchers.ViBooleanPointerMatcher()) return
def test_nitclk_is_done(multiple_niscope_sessions): nitclk.configure_for_homogeneous_triggers(multiple_niscope_sessions) nitclk.synchronize(multiple_niscope_sessions, .001) nitclk.initiate(multiple_niscope_sessions) nitclk.is_done(multiple_niscope_sessions)