예제 #1
0
 def test_byte_array_to_base64_string(self):
     inp = bytearray('I\'m killing your brain like a poisonous mushroom')
     expected = 'SSdtIGtpbGxpbmcgeW91ciBicmFpbiBsaWtlIGEgcG9pc29ub3VzIG11c2hyb29t'
     out = EncodingUtils.byte_array_to_base64_string(inp)
     self.assertEqual(out, expected)
예제 #2
0
 def test_byte_array_to_base64_string(self):
     inp = bytearray('I\'m killing your brain like a poisonous mushroom')
     expected = 'SSdtIGtpbGxpbmcgeW91ciBicmFpbiBsaWtlIGEgcG9pc29ub3VzIG11c2hyb29t'
     out = EncodingUtils.byte_array_to_base64_string(inp)
     self.assertEqual(out, expected)