Exemplo n.º 1
0
 def test_decode(self):
     for item in self.items:
         assert item['encoded']['name'] == item['encrypted']['name']
         message = Message.from_encoded(item['encrypted'], self.cipher)
         assert message.encoding == ''
         expected_data = self.get_encoded(item['encoded'])
         assert expected_data == message.data
Exemplo n.º 2
0
 def test_decode(self):
     for item in self.items:
         self.assertEqual(item['encoded']['name'], item['encrypted']['name'])
         message = Message.from_encoded(item['encrypted'], self.cipher)
         self.assertEqual(message.encoding, '')
         expected_data = self.get_encoded(item['encoded'])
         self.assertEqual(expected_data, message.data)
Exemplo n.º 3
0
 def test_decode(self):
     for item in self.items:
         assert item['encoded']['name'] == item['encrypted']['name']
         message = Message.from_encoded(item['encrypted'], self.cipher)
         assert message.encoding == ''
         expected_data = self.get_encoded(item['encoded'])
         assert expected_data == message.data