import unittest

from programy.context import ClientContext
from programy.dynamic.maps.lemmatize import LemmatizeMap
from programytest.client import TestClient


class TestLemmatizeMaps(unittest.TestCase):

    def setUp(self):
        self._client_context = ClientContext(TestClient(), "testid")

    def test_static_map(self):
        lemmamap = LemmatizeMap(None)
        self.assertEqual("octopus", lemmamap.map_value(self._client_context, "octopi"))
        self.assertEqual("sheep", lemmamap.map_value(self._client_context, "sheep"))
        self.assertEqual("fish", lemmamap.map_value(self._client_context, "fish"))
        self.assertEqual("mouse", lemmamap.map_value(self._client_context, "mice"))
        self.assertEqual("holly", lemmamap.map_value(self._client_context, "hollies"))

import unittest

from programy.context import ClientContext
from programy.dynamic.maps.lemmatize import LemmatizeMap
from programytest.client import TestClient


class TestLemmatizeMaps(unittest.TestCase):

    def setUp(self):
        self._client_context = ClientContext(TestClient(), "testid")

    def test_static_map(self):
        lemmamap = LemmatizeMap(None)
        self.assertEqual("octopus", lemmamap.map_value(self._client_context, "octopi"))
        self.assertEqual("sheep", lemmamap.map_value(self._client_context, "sheep"))
        self.assertEqual("fish", lemmamap.map_value(self._client_context, "fish"))
        self.assertEqual("mouse", lemmamap.map_value(self._client_context, "mice"))
        self.assertEqual("holly", lemmamap.map_value(self._client_context, "hollies"))
