예제 #1
0
파일: tkbrand.py 프로젝트: siadyhr/web
def tk_kprefix(title, arg='unicode'):
    return tk.kprefix(title, gfyear=config.GFYEAR, type=arg)
예제 #2
0
 def test_kprefix(self):
     with tk.set_gfyear(2015):
         self.assertEqual(tk.kprefix(('CERM', 2014)), 'KBCERM')
예제 #3
0
 def test_kprefix(self):
     self.assertEqual(tk.kprefix(self.form(2014), 2016), 'KOFORM')
예제 #4
0
 def test_year_plus_2(self):
     self.assertEqual(tk.kprefix(("CERM", 2018), 2016), "K2CERM")
예제 #5
0
 def test_unicode_year_minus_05(self):
     self.assertEqual(tk.kprefix(("CERM", 2011), 2016, type='unicode'),
                      "KT³OCERM")
예제 #6
0
 def test_year_plus_1(self):
     self.assertEqual(tk.kprefix(("CERM", 2017), 2016), "KCERM")
예제 #7
0
 def test_year_minus_05(self):
     self.assertEqual(tk.kprefix(("CERM", 2011), 2016), "KT3OCERM")
예제 #8
0
 def test_year_minus_04(self):
     self.assertEqual(tk.kprefix(("CERM", 2012), 2016), "KT2OCERM")
예제 #9
0
 def test_year_minus_01(self):
     self.assertEqual(tk.kprefix(("CERM", 2015), 2016), "KBCERM")
예제 #10
0
 def test_sameyear(self):
     self.assertEqual(tk.kprefix(("CERM", 2016), 2016), "KGCERM")