'Verify exception is raised when REMOTE_USER is an empty string.'

def test_empty_remote_user(self):

    external_method = token.controllers.ExternalAuthenticationMethod()
    request = webob.Request.blank('/', environ={'REMOTE_USER': ''})
    self.assertRaises(token.controllers.ExternalAuthNotApplicable, external_method.authenticate, request, auth={})
