Example #1
0
 def test_byte_to_binary_failure(self):
     """
     unit test to test the conversion of byte in binary value to get the
     invalid binary value for the corresponding byte
     """
     val = "\x80"
     binaryval = "1230000"
     out = _byte_to_binary(ord(val))
     self.assertNotEqual(binaryval, out)
Example #2
0
 def test_byte_to_binary_failure(self):
     """
     unit test to test the conversion of byte in binary value to get the
     invalid binary value for the corresponding byte
     """
     val = '\x80'
     binaryval = '1230000'
     out = _byte_to_binary(ord(val))
     self.assertNotEqual(binaryval, out)