def test_store_message(self):
        if self.__verbose_testing:
            print('>>> test_store_message')

        # 1) we retrieve any of the slots that we have just created
        op_slot = operational_models.OperationalSlot.objects.all()[0]
        # 2) now we attemp to write a messageto to the retrieved slot
        message_id = comms_jrpc.store_message(
            slot_id=op_slot.identifier,
            upwards=True, forwarded=True, timestamp=0,
            message=db_tools.MESSAGE_BASE64
        )
        # 3) we check that the message was stored correctly
        message = comms_models.Message.objects.get(pk=message_id)
        self.maxDiff = None
        self.assertEquals(
            str.encode(message.message, 'UTF-8'), db_tools.MESSAGE_BASE64
        )
Update a resource.
dataset/ETHPy150Open satnet-project/server/services/communications/tests/test_jrpc.py/TestPassiveCommunications.test_store_message--crossover with--dataset/ETHPy150Open wichert/rest_toolkit/src/rest_toolkit/abc.py/EditableResource.update_from_dict