def METHOD_NAME(self):
    with mock.patch('pika.credentials.LOGGER', autospec=True) as logger:
        cred = credentials.ExternalCredentials()
        cred.erase_credentials()
        logger.debug.assert_called_once_with('Not supported by this '
                                             'Credentials type')