示例#1
0
 def test_to_classical_plural(self):
     for adjective in self.adjectives:
         with self.subTest():
             test_case = {
                 "in": adjective,
                 "out": adjective,
                 "desc":
                 f"Adjective({repr(adjective)}).classical().plural() => {repr(adjective)}",
                 "kwargs": {}
             }
             adj = Adjective(test_case["in"])
             self.assertEqual(adj.classical().plural(**test_case["kwargs"]),
                              test_case["out"], test_case["desc"])
示例#2
0
 def test_classical(self):
     adj = Adjective("our")
     self.assertEqual(
         adj, adj.classical(),
         "Check whether Adjective(...) = Adjective(...).classical()")