Пример #1
0
 def test_plural_s_to_singular(self):
     map = SingularMap(None)
     self.assertEqual("CURL", map.map_value(self._client_context, "CURLS"))
Пример #2
0
 def test_plural_no_match(self):
     map = SingularMap(None)
     self.assertEqual("FISH", map.map_value(self._client_context, "FISH"))
Пример #3
0
 def test_plural_ies_to_singular(self):
     map = SingularMap(None)
     self.assertEqual("HOLLY", map.map_value(self._client_context,
                                             "HOLLIES"))
Пример #4
0
 def test_static_map(self):
     map = SingularMap(None)
     self.assertEqual("MOUSE", map.map_value(self._client_context, "MICE"))
Пример #5
0
 def test_static_map(self):
     map = SingularMap(None)
     self.assertEqual("MOUSE", map.map_value(None, "clientid", "MICE"))
Пример #6
0
 def test_plural_no_match(self):
     map = SingularMap(None)
     self.assertEqual("FISH", map.map_value(None, "clientid", "FISH"))
Пример #7
0
 def test_plural_s_to_singular(self):
     map = SingularMap(None)
     self.assertEqual("CURL", map.map_value(None, "clientid", "CURLS"))