def METHOD_NAME(self):
    """Test the run method."""
    with patch.object(
        ConnectTaskRunner, "connect", side_effect=invalid_login
    ) as mock_connect:
        status = self.runner.run(Value("i", ScanJob.JOB_RUN))
        self.assertEqual(ScanTask.FAILED, status[1])
        mock_connect.assert_called_once_with()