Exemple #1
0
 def test_tag_repr(self):
     """Test utils.codify.tag_repr"""
     input_tag = [0x00000000, 0x00100010, 0x7fe00010, 0x11110001]
     output_str = ['(0x0000, 0x0000)', '(0x0010, 0x0010)',
                   '(0x7fe0, 0x0010)', '(0x1111, 0x0001)']
     for tag, out_str in zip(input_tag, output_str):
         assert out_str == tag_repr(Tag(tag))
Exemple #2
0
 def test_tag_repr(self):
     """Test utils.codify.tag_repr"""
     input_tag = [0x00000000, 0x00100010, 0x7fe00010, 0x11110001]
     output_str = ['(0x0000, 0x0000)', '(0x0010, 0x0010)',
                   '(0x7fe0, 0x0010)', '(0x1111, 0x0001)']
     for tag, out_str in zip(input_tag, output_str):
         assert tag_repr(Tag(tag)) == out_str