Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(2)  |  Call(1)  |  Derive(0)  |  Import(1)

src/p/y/pymorphy-0.5.6/pymorphy/tests.py   pymorphy(Download)
from django.utils.translation import ugettext_lazy as _
 
from templatetags.pymorphy_tags import inflect, plural, inflect_marked
 
class InflectMarkedTagTest(TestCase):
    def assertPlural(self, phrase, amount, result):
        morphed = plural(phrase, amount)
        err_msg = u"%s != %s" % (morphed, result)
        self.assertEqual(morphed, result, err_msg.encode('utf8'))