'Test configlet_update_task does not get task after three tries.'

@patch('time.sleep')
@patch('ansible.modules.network.cloudvision.cv_server_provision.switch_info')
def test_configlet_update_task_no_task(self, mock_info, mock_sleep):

    module = Mock()
    mock_info.side_effect = [dict(), dict(), dict()]
    result = cv_server_provision.configlet_update_task(module)
    self.assertIsNone(result)
    self.assertEqual(mock_sleep.call_count, 3)
    self.assertEqual(mock_info.call_count, 3)
