def test_get_data_sample_via_poll_mode(self):
        """Mainly check the format of the manual sample that comes out
        @todo Finish this out...is the transition right for getting into poll mode?
        """
        self.driver_client.cmd_dvr('execute_poll')
        reply = self.driver_client.cmd_dvr('get_current_state')
        self.assertEqual(PARProtocolState.POLL_MODE, reply)
        
        # Get data
        reply_1 = self.driver_client.cmd_dvr('execute_acquire_sample')
        
        self.assertTrue(sample_regex.match(reply_1))        
    
        reply = self.driver_client.cmd_dvr('get_current_state')
        self.assertEqual(PARProtocolState.POLL_MODE, reply)

        # Get data
        reply_2 = self.driver_client.cmd_dvr('execute_acquire_sample')
        
        self.assertTrue(sample_regex.match(reply_2))
        self.assertNotEqual(reply_1, reply_2)

        reply = self.driver_client.cmd_dvr('get_current_state')
        self.assertEqual(PARProtocolState.POLL_MODE, reply)
        
        self.driver_client.cmd_dvr('execute_break')
        
        reply = self.driver_client.cmd_dvr('get_current_state')
        self.assertEqual(PARProtocolState.COMMAND_MODE, reply)
 def test_get_sample_from_cmd_mode(self):
     """Get some samples directly from command mode"""
     reply_1 = self.driver_client.cmd_dvr('execute_acquire_sample')
     self.assertTrue(sample_regex.match(reply_1))        
 
     # Get data
     reply_2 = self.driver_client.cmd_dvr('execute_acquire_sample')
     self.assertTrue(sample_regex.match(reply_2))
     self.assertNotEqual(reply_1, reply_2)
     
     reply = self.driver_client.cmd_dvr('get_current_state')
     self.assertEqual(PARProtocolState.COMMAND_MODE, reply)