parameters: (self, expected_values, expected_offsets)
docstring: Check the tags received by the tag debug block
docstring_summary: Check the tags received by the tag debug block
docstring_tokens: Check the tags received by the tag debug block
function: def _assert_tags(self, expected_values, expected_offsets):
          """Check the tags received by the tag debug block"""
          tags = self.tag_sink.current_tags()
          expected_tags = list(zip(expected_values, expected_offsets))
          self.assertEqual(len(tags), len(expected_tags))
  
          for idx, (val, offset) in enumerate(expected_tags):
              self.assertAlmostEqual(pmt.to_double(tags[idx].value),
                                     val,
                                     places=5)
              self.assertEqual(tags[idx].offset, offset)
function_tokens: def _assert_tags ( self , expected_values , expected_offsets ) : tags = self . tag_sink . current_tags ( ) expected_tags = list ( zip ( expected_values , expected_offsets ) ) self . assertEqual ( len ( tags ) , len ( expected_tags ) ) for idx , ( val , offset ) in enumerate ( expected_tags ) : self . assertAlmostEqual ( pmt . to_double ( tags [ idx ] . value ) , val , places = 5 ) self . assertEqual ( tags [ idx ] . offset , offset )