@patch('orchestra.communication.mail._send_mail')
    def test_filtering_no_preference(self, mock_mail):
        # Test when no comm_type is given
        send_mail(subject='test_subject',
                  message='test_message',
                  from_email='test@test.com',
                  recipient_list=self.recipient_list
                  )
        self.assertTrue(mock_mail.called)
Verify that we correctly filter users based on their email
dataset/ETHPy150Open unlimitedlabs/orchestra/orchestra/communication/tests/test_mail.py/ModelsTestCase.test_filtering_no_preference