parameters: (self)
docstring: Test receiving of multiple PMT messages
docstring_summary: Test receiving of multiple PMT messages
docstring_tokens: Test receiving of multiple PMT messages
function: def test_multiple_messages(self):
          """Test receiving of multiple PMT messages"""
          msgs = [pmt.to_pmt('test_valid_pmt msg0'),
                  pmt.to_pmt('test_valid_pmt msg1'),
                  pmt.to_pmt('test_valid_pmt msg2')]
          self.send_messages(msgs)
  
          time.sleep(0.1)
          self.assertEqual(len(msgs), self.message_debug.num_messages())
          for index, msg in enumerate(msgs):
              self.assertTrue(
                  pmt.equal(
                      msg,
                      self.message_debug.get_message(index)))
function_tokens: def test_multiple_messages ( self ) : msgs = [ pmt . to_pmt ( 'test_valid_pmt msg0' ) , pmt . to_pmt ( 'test_valid_pmt msg1' ) , pmt . to_pmt ( 'test_valid_pmt msg2' ) ] self . send_messages ( msgs ) time . sleep ( 0.1 ) self . assertEqual ( len ( msgs ) , self . message_debug . num_messages ( ) ) for index , msg in enumerate ( msgs ) : self . assertTrue ( pmt . equal ( msg , self . message_debug . get_message ( index ) ) )