示例#1
0
文件: test_utils.py 项目: crodjer/atg
 def test_now_str(self):
     now = U.now(utc)
     self.assertEqual(now.strftime("%c"), U.now_str(utc), )
示例#2
0
文件: commands.py 项目: crodjer/atg
def now(args):
    '''
    Tell the current time there.
    '''
    yield 'Their time: {}'.format(U.now_str(args.remote_tz))
示例#3
0
 def test_now(self):
     self.in_command(C.now, U.now_str(self.remote_tz))