def METHOD_NAME(self, f=output.shorten_string_eaw):
    s = "幻想郷幻想郷幻想郷幻想郷"  # 12 wide characters
    self.assertEqual(f(s, 24, "|---|"), s)
    self.assertEqual(f(s, 19, "|---|"), "幻想郷|---|郷幻想郷")
    self.assertEqual(f(s, 15, "|---|"), "幻想|---|幻想郷")
    self.assertEqual(f(s, 10, "|---|"), "幻|---|郷")
    self.assertEqual(f(s, 19, "..."), "幻想郷幻...郷幻想郷")
    self.assertEqual(f(s, 19, "..") , "幻想郷幻..郷幻想郷")
    self.assertEqual(f(s, 19, ".")  , "幻想郷幻.想郷幻想郷")
    self.assertEqual(f(s, 19, "")   , "幻想郷幻想郷幻想郷")