#!/usr/bin/env python
# -*- coding: utf-8 -*-

"""Tests for `latinwordnet` package."""

import unittest
from latinwordnet import LatinWordNet


class TestIndex(unittest.TestCase):
    """Tests for `latinwordnet` package."""

    def setUp(self):
        """Set up test fixtures, if any."""

    def tearDown(self):
        """Tear down test fixtures, if any."""

    def test_lemmas(self):
        """Test the Latin WordNet API (sentiment analysis)."""

        # Requires authentication
        # LWN = LatinWordNet(token='')
        # assert LWN.sentiment_analysis('odiosus es mihi').json() == [
        #     [
        #         [
        #             {
        #                 'lemma': 'odiosus', 'morpho': 'aps---mn1-', 'uri': 'o0512'
        #             },
        #             {
        #                 'lemma': 'sum', 'morpho': 'v1spia--3-', 'uri': 's3436'
        #             }
        #         ],
        #         -0.207
        #     ]
        # ]

