def METHOD_NAME(self):
    n = NodeDriver("foo")
    n.features = {"create_node": ["ssh_key"]}
    auth = NodeAuthPassword("password")
    self.assertRaises(LibcloudError, n._get_and_check_auth, auth)