Exemple #1
0
 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)
Exemple #2
0
#coding=utf8
import when

print when.timezone()

print when.today()

print when.tomorrow()

print when.now()
Exemple #3
0
 def test_timezone(self):
     self.assertEqual(when.timezone(), self.timezone)
Exemple #4
0
 def test_timezone(self):
     """Test when.timezone()"""
     self.assertEqual(when.timezone(), self.timezone)
Exemple #5
0
 def test_timezone(self):
     """Test when.timezone()"""
     self.assertEqual(when.timezone(), self.timezone)