Exemplo n.º 1
0
 def test_week(self):
     self.assertEqual(time.strftime('%W'), JITime.week())
Exemplo n.º 2
0
 def test_now_time(self):
     self.assertEqual(time.strftime('%H:%M:%S'), JITime.now_time())
Exemplo n.º 3
0
 def test_now_date_time(self):
     self.assertEqual(time.strftime('%Y-%m-%d %H:%M:%S'), JITime.now_date_time())
Exemplo n.º 4
0
 def test_gmt(self):
     self.assertEqual(time.strftime('%a, %d %b %Y %H:%M:%S GMT', time.gmtime()), JITime.gmt())
Exemplo n.º 5
0
 def test_today(self):
     self.assertEqual(time.strftime('%Y-%m-%d'), JITime.today())
Exemplo n.º 6
0
 def test_week(self):
     self.assertEqual(time.strftime('%W'), JITime.week())
Exemplo n.º 7
0
 def test_launcher(self):
     router_table['today'] = JITime.today
     self.assertEqual(Router.launcher(action='today', content='-'), JITime.today())
Exemplo n.º 8
0
 def test_now_date_time(self):
     self.assertEqual(time.strftime('%Y-%m-%d %H:%M:%S'),
                      JITime.now_date_time())
Exemplo n.º 9
0
 def test_now_time(self):
     self.assertEqual(time.strftime('%H:%M:%S'), JITime.now_time())
Exemplo n.º 10
0
 def test_today(self):
     self.assertEqual(time.strftime('%Y-%m-%d'), JITime.today())
Exemplo n.º 11
0
 def test_gmt(self):
     self.assertEqual(
         time.strftime('%a, %d %b %Y %H:%M:%S GMT', time.gmtime()),
         JITime.gmt())
Exemplo n.º 12
0
 def test_launcher(self):
     router_table['today'] = JITime.today
     self.assertEqual(Router.launcher(action='today', content='-'),
                      JITime.today())