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_headset_3(self, serial_mock):
     """
     Test starting of toggle streaming
     """
     model = ApplicationModel()
     model.select_port(0, "__test_port_name__")
     model.start_headsets()
     time.sleep(.1)
     self.assertTrue(model.is_headset_streaming(), "Should be streaming from headset")
     model.stop_headsets()
 def _test_headset_3(self, serial_mock):
     """
     Test starting of toggle streaming
     """
     model = ApplicationModel()
     model.select_port(0, "__test_port_name__")
     model.start_headsets()
     time.sleep(.1)
     self.assertTrue(model.is_headset_streaming(),
                     "Should be streaming from headset")
     model.stop_headsets()
 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")