def test_str_forinet6(self):
    pol = policy.ParsePolicy(nsxv_mocktest.INET6_FILTER, self.defs, False)
    af=6
    filter_type = 'inet6'
    for header, terms in pol.filters:
       nsxv_term= nsxv.Term(terms[0], filter_type, af)
       rule_str = nsxv.Term.__str__(nsxv_term)

    # parse xml rule and check if the values are correct
    root = ET.fromstring(rule_str)
    # check name and action
    self.assertEqual(root.find('name').text, 'test-icmpv6')
    self.assertEqual(root.find('action').text, 'allow')

    #check protocol and sub protocol
    exp_subprotocol = [128, 129]
    for service in root.findall('./services/service'):
      protocol = int(service.find('protocol').text)
      self.assertEqual(protocol, 58)

      sub_protocol = int(service.find('subProtocol').text)
      if sub_protocol not in exp_subprotocol:
        self.fail('subProtocol not matched in test_str_forinet6()')
Converts a tuple to an array of GLints (would a pointer return be better?)
dataset/ETHPy150Open google/capirca/tests/nsxv_unittest.py/TermTest.test_str_forinet6--crossover with--dataset/ETHPy150Open gasman/shortcrust/shortcrust/raspi/gl.py/GLints