'Verify that authenticate raises exception if no token.'

def test_no_token_in_auth(self):

    token_method = token.controllers.TokenAuthenticationMethod()
    self.assertRaises(exception.ValidationError, token_method.authenticate, None, {})
