def test_session_coverage_8_play_pause_jump_both_alive_speed(self): test_utils.session_coverage_extraction_test(logs_collection, 'test8', self._sessionInfo) expected_output = [[0.0, 60.0], [70.0, 100.0], [130.0, 150.0]] data_extraction.session_coverage_extraction(self._sessionInfo) self.assertEqual(self._sessionInfo['session_coverage'], expected_output)
def test_session_coverage_5_play_pause_jump_backwards_alive(self): test_utils.session_coverage_extraction_test(logs_collection, 'test5', self._sessionInfo) expected_output = [[10.0, 60.0], [80.0, 90.0], [100.0, 120.0]] data_extraction.session_coverage_extraction(self._sessionInfo) self.assertEqual(self._sessionInfo['session_coverage'], expected_output)
def test_session_coverage_3_play_pause_jump_forwards(self): test_utils.session_coverage_extraction_test(logs_collection, 'test3', self._sessionInfo) expected_output = [[0.0, 30.0], [50.0, 70.0], [90.0, 120.0]] data_extraction.session_coverage_extraction(self._sessionInfo) self.assertEqual(self._sessionInfo['session_coverage'], expected_output)
def test_session_coverage_2_play_pause_alive(self): test_utils.session_coverage_extraction_test(logs_collection, 'test2', self._sessionInfo) expected_output = [[0.0, 180.0]] data_extraction.session_coverage_extraction(self._sessionInfo) self.assertEqual(self._sessionInfo['session_coverage'], expected_output)
def test_session_coverage_mute_7_play_pause_jump_both_alive(self): test_utils.session_coverage_extraction_test(logs_collection, 'test7', self._sessionInfo) expected_output = [] data_extraction.session_coverage_extraction(self._sessionInfo) self.assertEqual(self._sessionInfo['muted_intervals'], expected_output)
def test_session_coverage_mute_4_play_pause_jump_backwards(self): test_utils.session_coverage_extraction_test(logs_collection, 'test4', self._sessionInfo) expected_output = [[40.0, 50.0], [80.0, 90.0], [110.0, 120.0]] data_extraction.session_coverage_extraction(self._sessionInfo) self.assertEqual(self._sessionInfo['muted_intervals'], expected_output)
def test_session_coverage_mute_1_play_pause(self): test_utils.session_coverage_extraction_test(logs_collection, 'test1', self._sessionInfo) expected_output = [[35.0, 50.0]] data_extraction.session_coverage_extraction(self._sessionInfo) self.assertEqual(self._sessionInfo['muted_intervals'], expected_output)