def test_decode_array(self): items_encrypted = [item['encrypted'] for item in self.items] messages = Message.from_encoded_array(items_encrypted, self.cipher) for i, message in enumerate(messages): assert message.encoding == '' expected_data = self.get_encoded(self.items[i]['encoded']) assert expected_data == message.data
def test_decode_array(self): items_encrypted = [item['encrypted'] for item in self.items] messages = Message.from_encoded_array(items_encrypted, self.cipher) for i, message in enumerate(messages): self.assertEqual(message.encoding, '') expected_data = self.get_encoded(self.items[i]['encoded']) self.assertEqual(expected_data, message.data)
def test_decode_array(self): items_encrypted = [item['encrypted'] for item in self.items] messages = Message.from_encoded_array(items_encrypted, self.cipher) for i, message in enumerate(messages): assert message.encoding == '' expected_data = self.get_encoded(self.items[i]['encoded']) assert expected_data == message.data