Exemplo n.º 1
0
 def test_encode_string(self):
     self.assertEqual(
         UtilityService.encode_string('this is a super string!'),
         'dGhpcyBpcyBhIHN1cGVyIHN0cmluZyE=')
Exemplo n.º 2
0
 def test_decode_encode_string_functional(self):
     mystring = 'Speedily say has suitable disposal add boy. On forth doubt miles of child. Exercise joy man.'
     self.assertEqual(
         UtilityService.decode_bytes(
             UtilityService.encode_string(mystring)), mystring)