Exemplo n.º 1
0
 def test_time_format(self):
     assert tc.format() == tc.TIME_FORMAT
     timeformat = '%Y%m%d%H%M%S'
     tc.__init__(format=timeformat)
     assert tc.TIME_FORMAT == timeformat
     assert tc.format() == timeformat
     tc.__init__(format=tc.BASE_TIME_FORMAT)
Exemplo n.º 2
0
 def test_time_format(self):
     assert tc.format() == tc.TIME_FORMAT
     timeformat = '%Y%m%d%H%M%S'
     tc.__init__(format=timeformat)
     assert tc.TIME_FORMAT == timeformat
     assert tc.format() == timeformat
Exemplo n.º 3
0
 def test_time_zone(self):
     assert tc.timezone() == tc.TIME_ZONE
     timezone = 'UTC'
     tc.__init__(timezone=timezone)
     assert tc.TIME_ZONE == timezone
     assert tc.timezone() == timezone
Exemplo n.º 4
0
 def test_time_zone(self):
     assert tc.timezone() == tc.TIME_ZONE
     timezone = 'UTC'
     tc.__init__(timezone=timezone)
     assert tc.TIME_ZONE == timezone
     assert tc.timezone() == timezone