@patch('open_connect.groups.tasks.send_system_message')
    def test_add_user_to_group_does_not_notify_opted_out_owners(self, mock):
        group = Group.objects.create(name='test')
        # group = mommy.make('groups.Group')
        owner = self.create_superuser(receive_group_join_notifications=False)
        group.owners.add(owner)
        add_user_to_group.delay(self.user.pk, group.pk)

        self.assertEqual(mock.delay.call_count, 0)
Owners who have opted out of join notifications shouldn't get one.
dataset/ETHPy150Open ofa/connect/open_connect/groups/tests/test_tasks.py/TestAddUserToGroup.test_add_user_to_group_does_not_notify_opted_out_owners