def tk_kprefix(title, arg='unicode'): return tk.kprefix(title, gfyear=config.GFYEAR, type=arg)
def test_kprefix(self): with tk.set_gfyear(2015): self.assertEqual(tk.kprefix(('CERM', 2014)), 'KBCERM')
def test_kprefix(self): self.assertEqual(tk.kprefix(self.form(2014), 2016), 'KOFORM')
def test_year_plus_2(self): self.assertEqual(tk.kprefix(("CERM", 2018), 2016), "K2CERM")
def test_unicode_year_minus_05(self): self.assertEqual(tk.kprefix(("CERM", 2011), 2016, type='unicode'), "KT³OCERM")
def test_year_plus_1(self): self.assertEqual(tk.kprefix(("CERM", 2017), 2016), "KCERM")
def test_year_minus_05(self): self.assertEqual(tk.kprefix(("CERM", 2011), 2016), "KT3OCERM")
def test_year_minus_04(self): self.assertEqual(tk.kprefix(("CERM", 2012), 2016), "KT2OCERM")
def test_year_minus_01(self): self.assertEqual(tk.kprefix(("CERM", 2015), 2016), "KBCERM")
def test_sameyear(self): self.assertEqual(tk.kprefix(("CERM", 2016), 2016), "KGCERM")