def test_headset_2(self): """ Test recording state after streaming start and setting of filename """ model = ApplicationModel() model.start_headsets() self.assertFalse(model.is_recording(), "Should not be recording") model.stop_headsets()
def test_init(self): """ Tests for initial state """ model = ApplicationModel() self.assertEqual(model.get_simulation_state(), DataSimulator.IDLE, "Simulation state should initialize as IDLE") self.assertFalse(model.is_receiving_data(), "Should not be receiving data") self.assertFalse(model.is_recording(), "Should not be recording data") self.assertFalse(model.is_headset_streaming(), "Should not be streaming from headset") self.assertFalse(model.is_headset_connected(), "No headset should be selected")
def test_headset_4(self): """ Test recording state after streaming start """ record_time = 10 model = ApplicationModel() model.start_headsets() model.start_recording(record_time) model.stop_recording() model.stop_headsets() self.assertFalse(model.is_recording(), "Should not be recording")