Exemplo n.º 1
0
 def test_handle_lattice_error_parsing_transaction(self, m_Transaction,
                                                   m_logger):
     m_Transaction.from_pbdata.side_effect = Exception
     msg = make_message(func_name=qrllegacy_pb2.LegacyMessage.LT,
                        ltData=qrl_pb2.Transaction())
     P2PTxManagement.handle_lattice(self.channel, msg)
     self.channel.factory.add_unprocessed_txn.assert_not_called()
     m_logger.exception.assert_called()
     self.channel.loseConnection.assert_called()
Exemplo n.º 2
0
 def test_handle_lattice(self, m_Transaction, m_logger):
     msg = make_message(func_name=qrllegacy_pb2.LegacyMessage.LT,
                        ltData=qrl_pb2.Transaction())
     P2PTxManagement.handle_lattice(self.channel, msg)
     self.channel.factory.add_unprocessed_txn.assert_called()