コード例 #1
0
ファイル: test_when.py プロジェクト: kennethgunn/When.py
 def test_timezone(self):
     # This test is tricky. In order for it to pass, the time zone needs to
     # be known ahead of time. When I run these tests locally, that's
     # America/New_York. If I have the tests run on travis-ci.org, that's
     # UTC. I've added an optional environment setting called TIMEZONE to
     # all this to be manually set. By default, UTC will be used.
     self.assertEqual(when.timezone(), self.timezone)
コード例 #2
0
ファイル: test_when.py プロジェクト: wsgan001/BasePython
#coding=utf8
import when

print when.timezone()

print when.today()

print when.tomorrow()

print when.now()
コード例 #3
0
ファイル: test_when.py プロジェクト: diezguerra/When.py
 def test_timezone(self):
     self.assertEqual(when.timezone(), self.timezone)
コード例 #4
0
ファイル: test_when.py プロジェクト: timgates42/When.py
 def test_timezone(self):
     """Test when.timezone()"""
     self.assertEqual(when.timezone(), self.timezone)
コード例 #5
0
ファイル: test_when.py プロジェクト: MVReddy/WhenPy
 def test_timezone(self):
     """Test when.timezone()"""
     self.assertEqual(when.timezone(), self.timezone)