parameters: (self)
docstring: Test receiving of valid PMT messages
docstring_summary: Test receiving of valid PMT messages
docstring_tokens: Test receiving of valid PMT messages
function: def test_valid_pmt(self):
          """Test receiving of valid PMT messages"""
          msg = pmt.to_pmt('test_valid_pmt')
          self.send_messages([msg])
          for _ in range(10):
              if self.message_debug.num_messages() > 0:
                  break
              time.sleep(0.2)
          self.assertEqual(1, self.message_debug.num_messages())
          self.assertTrue(pmt.equal(msg, self.message_debug.get_message(0)))
function_tokens: def test_valid_pmt ( self ) : msg = pmt . to_pmt ( 'test_valid_pmt' ) self . send_messages ( [ msg ] ) for _ in range ( 10 ) : if self . message_debug . num_messages ( ) > 0 : break time . sleep ( 0.2 ) self . assertEqual ( 1 , self . message_debug . num_messages ( ) ) self . assertTrue ( pmt . equal ( msg , self . message_debug . get_message ( 0 ) ) )