@mock.patch('olympia.devhub.utils.chain')
    def test_run_once_file_upload(self, chain):
        task = mock.Mock()
        chain.return_value = task
        task.delay.return_value = mock.Mock(task_id='42')

        assert isinstance(tasks.validate(self.file_upload), mock.Mock)
        assert task.delay.call_count == 1

        assert isinstance(tasks.validate(self.file_upload), AsyncResult)
        assert task.delay.call_count == 1
Add new server to the group.
dataset/ETHPy150Open mozilla/addons-server/src/olympia/devhub/tests/test_utils.py/TestValidationAnnotatorListed.test_run_once_file_upload--crossover with--dataset/ETHPy150Open google/grr/grr/server/data_server/data_server.py/DataServerHandler.HandleServerAdd