tests/fixtures.py
def verify_codeblock_style(self, actual, styles):
        """
        Verify the code-block style for SPcod and SPcoc parameters.

        This information is stored in a single byte.  Please reference
        Table A-17 in FCD15444-1
        """
        expected = 0
        masks = [
            0x01,  # Selective arithmetic coding bypass
            0x02,  # Reset context probabilities
            0x04,  # Termination on each coding pass
            0x08,  # Vertically causal context
            0x10,  # Predictable termination
            0x20,  # Segmentation symbols
        ]
        for style, mask in zip(styles, masks):
            if style:
                expected |= mask

        self.assertEqual(actual, expected)

        Verify the code-block style for SPcod and SPcoc parameters.

        This information is stored in a single byte.  Please reference
        Table A-17 in FCD15444-1
        
Verify the code-block style for SPcod and SPcoc parameters.
This information is stored in a single byte.  Please reference
Table A-17 in FCD15444-1
Verify the code - block style for SPcod and SPcoc parameters . This information is stored in a single byte . Please reference Table A - 17 in FCD15444 - 1
def verify_codeblock_style(self, actual, styles):
        expected = 0
        masks = [
            0x01,  
            0x02,  
            0x04,  
            0x08,  
            0x10,  
            0x20,  
        ]
        for style, mask in zip(styles, masks):
            if style:
                expected |= mask
        self.assertEqual(actual, expected)
def verify_codeblock_style ( self , actual , styles ) : expected = 0 masks = [ 0x01 , 0x02 , 0x04 , 0x08 , 0x10 , 0x20 , ] for style , mask in zip ( styles , masks ) : if style : expected |= mask self . assertEqual ( actual , expected )
Verify the code-block style for SPcod and SPcoc parameters.
Verify the code - block style for SPcod and SPcoc parameters .
"""
        Verify the code-block style for SPcod and SPcoc parameters.

        This information is stored in a single byte.  Please reference
        Table A-17 in FCD15444-1
        """ # Selective arithmetic coding bypass # Reset context probabilities # Termination on each coding pass # Vertically causal context # Predictable termination # Segmentation symbols
self
actual
styles