'Test connect success.'

@patch('ansible.modules.network.cloudvision.cv_server_provision.CvpClient')
def test_connect_good(self, mock_client):

    module = Mock()
    module.params = dict(host='host', username='username', password='password', protocol='https', port='10')
    connect_mock = Mock()
    mock_client.return_value = connect_mock
    client = cv_server_provision.connect(module)
    self.assertIsInstance(client, Mock)
    self.assertEqual(mock_client.call_count, 1)
    connect_mock.connect.assert_called_once_with(['host'], 'username', 'password', port='10', protocol='https')
    module.fail_json.assert_not_called()
