def test_add_sample_as_subject(samples):
    message = WarehouseMessage("mytype", "myuuid", "at some point")

    message.add_sample_as_subject(samples[0][0])
    assert message._subjects == [
        {
            "friendly_name": "sample_001__rna_1__lab_1__Positive",
            "role_type": "sample",
            "subject_type": "sample",
            "uuid": "0a53e7b6-7ce8-4ebc-95c3-02dd64942531",
        }
    ]
 def add_to_warehouse_message(self, message: WarehouseMessage):
     for sample in self.value.values():
         message.add_sample_as_subject(sample)