def testPluralDative(self): declensions = decline(self.noun) exVal = "\u0d24\u0d31\u0d15\u0d7e\u0d15\u0d4d\u0d15\u0d4d" # /t̪arakaɭkːə/ self.assertEqual( declensions["Plural"]["Dative"], exVal, "Expected {0} as the dative plural of {1}, but received {2}". format(exVal, self.noun, declensions["Plural"]["Dative"]))
def testPluralGenitive(self): declensions = decline(self.noun) exVal = "\u0d05\u0d24\u0d40\u0d24\u0d19\u0d4d\u0d19\u0d33\u0d41\u0d1f\u0d46" # /at̪iːt̪aŋːaɭuʈe/ self.assertEqual( declensions["Plural"]["Genitive"], exVal, "Expected {0} as genitive plural, but received {1}".format( exVal, declensions["Plural"]["Genitive"]))
def testPluralLocative(self): declensions = decline(self.noun) exVal = "\u0d05\u0d24\u0d40\u0d24\u0d19\u0d4d\u0d19\u0d33\u0d3f\u0d7d" # /at̪iːt̪aŋːaɭil/ self.assertEqual( declensions["Plural"]["Locative"], exVal, "Expected {0} as locative plural, but received {1}".format( exVal, declensions["Plural"]["Locative"]))
def testPluralGenitive(self): declensions = decline(self.noun) eVal = "\u0d15\u0d24\u0d15\u0d4d\u0d15\u0d33\u0d41\u0d1f\u0d46" # /kat̪akəkaɭuʈe/ self.assertEqual( declensions["Plural"]["Genitive"], eVal, "Expected {0} as the plural genitive of {1}, but received {2}". format(eVal, self.noun, declensions["Plural"]["Genitive"]))
def testPluralSociative(self): declensions = decline(self.noun) eVal = "\u0d15\u0d24\u0d15\u0d4d\u0d15\u0d33\u0d4b\u0d1f\u0d4d" # /kat̪akəkaɭoːʈə/ self.assertEqual( declensions["Plural"]["Sociative"], eVal, f"Expected {eVal} as the locative plural of {self.noun}, but received {declensions['Plural']['Sociative']}" )
def testSingularLocative(self): declensions = decline(self.noun) eVal = "\u0d15\u0d24\u0d15\u0d3f\u0d7d" # /kat̪akil/ self.assertEqual( declensions["Singular"]["Locative"], eVal, "Expected {0} as the singular locative of {1}, but received {2}". format(eVal, self.noun, declensions["Singular"]["Locative"]))
def testSingularInstrumental(self): declensions = decline(self.noun) eVal = "\u0d15\u0d24\u0d15\u0d3f\u0d28\u0d3e\u0d7d" # /kat̪akinaːl/ self.assertEqual( declensions["Singular"]["Instrumental"], eVal, "Expected {0} as the singular instrumental of {1}, but received {2}" .format(eVal, self.noun, declensions["Singular"]["Instrumental"]))
def testSingularLocative(self): declensions = decline(self.noun) eVal = "\u0d2a\u0d4a\u0d30\u0d41\u0d33\u0d3f\u0d7d" # /poɾuɭil/ self.assertEqual( declensions["Singular"]["Locative"], eVal, "Expected {0} as the locative singular of {1}, but received {2}". format(eVal, self.noun, declensions["Singular"]["Locative"]))
def testSingularSociative(self): declensions = decline(self.noun) eVal = "\u0d2a\u0d4a\u0d30\u0d41\u0d33\u0d4b\u0d1f\u0d4d" # /poɾuɭoːʈə/ self.assertEqual( declensions["Singular"]["Sociative"], eVal, "Expected {0} as the sociative singular of {1}, but received {2}". format(eVal, self.noun, declensions["Singular"]["Sociative"]))
def testSingularSociative(self): declensions = decline(self.noun) expectedVal = "\u0d05\u0d24\u0d40\u0d24\u0d24\u0d4d\u0d24\u0d3f\u0d28\u0d4b\u0d1f\u0d4d" # atiitattinooDuh self.assertEqual( declensions["Singular"]["Sociative"], expectedVal, "The generated sociative singular should be {0}, but {1} was returned." .format(expectedVal, declensions["Singular"]["Sociative"]))
def testSingularDative(self): declensions = decline(self.noun) eVal = "\u0d2a\u0d4a\u0d30\u0d41\u0d7e\u0d15\u0d4d\u0d15\u0d4d" # /poɾuɭkːə/ self.assertEqual( declensions["Singular"]["Dative"], eVal, "Expected {0} as the dative singular of {1}, but received {2}". format(eVal, self.noun, declensions["Singular"]["Dative"]))
def testSingularNominative(self): declensions = decline(self.noun) eVal = "\u0d2a\u0d4a\u0d30\u0d41\u0d7e" # Should be unchanged self.assertEqual( declensions["Singular"]["Nominative"], eVal, "Expected {0} as the nominative singular of {1}, but received {2}". format(eVal, self.noun, declensions["Singular"]["Nominative"]))
def testPluralInstrumental(self): declensions = decline(self.noun) exVal = "\u0d24\u0d31\u0d15\u0d33\u0d3e\u0d7d" # /t̪arakaɭaːl/ self.assertEqual( declensions["Plural"]["Instrumental"], exVal, "Expected {0} as the instrumental plural of {1}, but received {2}". format(exVal, self.noun, declensions["Plural"]["Instrumental"]))
def testPluralSociative(self): declensions = decline(self.noun) exVal = "\u0d24\u0d31\u0d15\u0d33\u0d4b\u0d1f\u0d4d" # /t̪arakaɭoːʈə/ self.assertEqual( declensions["Plural"]["Sociative"], exVal, "Expected {0} as the sociative plural of {1}, but received {2}". format(exVal, self.noun, declensions["Plural"]["Sociative"]))
def testSingularAccusative(self): declensions = decline(self.noun) eVal = "\u0d15\u0d24\u0d15\u0d3f\u0d28\u0d46" # /katakin̪e/ self.assertEqual( declensions["Singular"]["Accusative"], eVal, "Expected {0} as the accusative singular of {1}, but received {2}". format(eVal, self.noun, declensions["Singular"]["Accusative"]))
def testSingularInstrumental(self): declensions = decline(self.noun) eVal = "\u0d2a\u0d4a\u0d30\u0d41\u0d33\u0d3e\u0d7d" # /poɾuɭaːl/ self.assertEqual( declensions["Singular"]["Instrumental"], eVal, "Expected {0} as the instrumental singular of {1}, but received {2}" .format(eVal, self.noun, declensions["Singular"]["Instrumental"]))
def testSingularGenitive(self): declensions = decline(self.noun) eVal = "\u0d15\u0d24\u0d15\u0d3f\u0d28\u0d4d\u0d31\u0d4d\u0d31\u0d46" # /katakinte/ self.assertEqual( declensions["Singular"]["Genitive"], eVal, "Expected {0} as the singular genitive of {1}, but received {2}". format(eVal, self.noun, declensions["Singular"]["Genitive"]))
def testPluralGenitive(self): declensions = decline(self.noun) eVal = "\u0d2a\u0d4a\u0d30\u0d41\u0d7e\u0d15\u0d33\u0d41\u0d1f\u0d46" # /poɾuɭkaɭuʈe/ self.assertEqual( declensions["Plural"]["Genitive"], eVal, "Expected {0} as the genitive plural of {1}, but received {2}". format(eVal, self.noun, declensions["Plural"]["Genitive"]))
def testSingularSociative(self): declensions = decline(self.noun) eVal = "\u0d15\u0d24\u0d15\u0d3f\u0d28\u0d4b\u0d1f\u0d4d" # /kat̪akinoːʈə/ self.assertEqual( declensions["Singular"]["Sociative"], eVal, "Expected {0} as the singular sociative of {1}, but received {2}". format(eVal, self.noun, declensions["Singular"]["Sociative"]))
def testPluralDative(self): declensions = decline(self.noun) eVal = "\u0d2a\u0d4a\u0d30\u0d41\u0d7e\u0d15\u0d7e\u0d15\u0d4d\u0d15\u0d4d" # /poɾuɭkaɭkːə/ self.assertEqual( declensions["Plural"]["Dative"], eVal, "Expected {0} as the dative plural of {1} but received {2}".format( eVal, self.noun, declensions["Plural"]["Dative"]))
def testPluralNominative(self): declensions = decline(self.noun) eVal = "\u0d15\u0d24\u0d15\u0d4d\u0d15\u0d7e" # /kat̪akəkaɭ/ self.assertEqual( declensions["Plural"]["Nominative"], eVal, "Expected {0} as the plural nominative of {1}, but received {2}". format(eVal, self.noun, declensions["Plural"]["Nominative"]))
def testSingularInstrumental(self): declensions = decline(self.noun) expectedVal = "\u0d05\u0d24\u0d40\u0d24\u0d24\u0d4d\u0d24\u0d3f\u0d28\u0d3e\u0d7d" # atiitattinaal self.assertEqual( declensions["Singular"]["Instrumental"], expectedVal, "The generated instrumental singular should be {0}, but {1} was returned." .format(expectedVal, declensions["Singular"]["Instrumental"]))
def testPluralLocative(self): declensions = decline(self.noun) eVal = "\u0d15\u0d24\u0d15\u0d4d\u0d15\u0d33\u0d3f\u0d7d" # /kat̪akəkaɭil/ self.assertEqual( declensions["Plural"]["Locative"], eVal, "Expected {0} as the locative plural of {1}, but received {2}". format(eVal, self.noun, declensions["Plural"]["Locative"]))
def testPluralSociative(self): declensions = decline(self.noun) eVal = "\u0d2a\u0d4a\u0d30\u0d41\u0d7e\u0d15\u0d33\u0d4b\u0d1f\u0d4d" # /poɾuɭkaɭoːʈə/ self.assertEqual( declensions["Plural"]["Sociative"], eVal, "Expected {0} as the plural sociative of {1}, but received {2}". format(eVal, self.noun, declensions["Plural"]["Sociative"]))
def testPluralInstrumental(self): declensions = decline(self.noun) eVal = "\u0d15\u0d24\u0d15\u0d4d\u0d15\u0d33\u0d3e\u0d7d" # /kat̪akəkaɭaːl/ self.assertEqual( declensions["Plural"]["Instrumental"], eVal, f"Expected {eVal} as the instrumental plural of {self.noun}, but received {declensions['Plural']['Instrumental']} instead." )
def testPluralInstrumental(self): declensions = decline(self.noun) eVal = "\u0d2a\u0d4a\u0d30\u0d41\u0d7e\u0d15\u0d33\u0d3e\u0d7d" # /poɾuɭkaɭaːl/ self.assertEqual( declensions["Plural"]["Instrumental"], eVal, "Expected {0} as the instrumental plural of {1}, but received {2}". format(eVal, self.noun, declensions["Plural"]["Sociative"]))
def testPluralDative(self): declensions = decline(self.noun) expectedVal = "\u0d05\u0d24\u0d40\u0d24\u0d19\u0d4d\u0d19\u0d7e\u0d15\u0d4d\u0d15\u0d4d" # /at̪iːt̪aŋːaɭkːə/ self.assertEqual( declensions["Plural"]["Dative"], expectedVal, "Expected {0} as dative plural, but received {1}".format( expectedVal, declensions["Plural"]["Dative"]))
def testSingularNominative(self): declensions = decline(self.noun) eVal = "\u0d15\u0d24\u0d15\u0d4d" # /kat̪akə/ (unchanged) self.assertEqual( declensions["Singular"]["Nominative"], eVal, "Expected {0} as the nominative singular of {1}, but received {2}". format(eVal, self.noun, declensions["Singular"]["Nominative"]))
def showDeclension(req=None, noun=""): template = loader.get_template("declension/noun.html") ctx = { "noun": noun, # Pass the noun which was sent in "declensions": decline(noun) # Pass the noun's declined forms } return HttpResponse(template.render(ctx, req))
def testPluralAccusative(self): declensions = decline(self.noun) exVal = "\u0d24\u0d31\u0d15\u0d33\u0d46" # /t̪arakaɭe/ self.assertEqual( declensions["Plural"]["Accusative"], exVal, "Expected {0} as the accusative plural of {1}, but received {2}". format(exVal, self.noun, declensions["Plural"]["Accusative"]))