def test_authentication_required(self):
        self.mock_validator.authenticate_client.return_value = False
        self.mock_validator.authenticate_client_id.return_value = False
        self.request.code = 'waffles'
        self.assertRaises(errors.InvalidClientError, self.auth.validate_token_request,
                          self.request)
        self.mock_validator.client_authentication_required.assert_called_once_with(self.request)
Estimate regression-based evoked potentials/fields by linear modelling
dataset/ETHPy150Open idan/oauthlib/tests/oauth2/rfc6749/grant_types/test_refresh_token.py/RefreshTokenGrantTest.test_authentication_required--crossover with--dataset/ETHPy150Open mne-tools/mne-python/mne/stats/regression.py/linear_regression_raw