'Verify that empty username and userID raises ValidationError.'

def test_empty_username_and_userid_in_auth(self):

    token_method = token.controllers.LocalAuthenticationMethod()
    self.assertRaises(exception.ValidationError, token_method.authenticate, None, {'passwordCredentials': {'password': 'abc', 'userId': '', 'username': ''}})
