docstr: Test that hexlify and b2a_hex are binary versions of bytes.hex.
docstr_tok: ["Test","that","hexlify","and","b2a_hex","are","binary","versions","of","bytes.hex","."]
code: def test_hex_separator(self):
      """Test that hexlify and b2a_hex are binary versions of bytes.hex."""
      # Logic of separators is tested in test_bytes.py.  This checks that
      # arg parsing works and exercises the direct to bytes object code
      # path within pystrhex.c.
      s = b"{s\005\000\000\000worldi\002\000\000\000s\005\000\000\000helloi\001\000\000\0000"
      self.assertEqual(
          binascii.hexlify(self.type2test(s)), s.hex().encode("ascii")
      )
      expected8 = s.hex(".", 8).encode("ascii")
      self.assertEqual(
          binascii.hexlify(self.type2test(s), ".", 8), expected8
      )
      expected1 = s.hex(":").encode("ascii")
      self.assertEqual(
          binascii.b2a_hex(self.type2test(s), ":"), expected1
      )
  
imports: import unittest
  import binascii
  import array
  import re
  from test.support import bigmemtest, _1G, _4G
  from test.support.hypothesis_helper import hypothesis
label_desc: Use image node_id 16 for calling the BinASCIITest obj's underlying member method code with example usage: obj.test_hex_separator() without return types