MCPcopy Index your code
hub / github.com/clips/pattern / test_timestamp

Method test_timestamp

test/test_db.py:168–172  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

166 print "pattern.db.Date.__str__()"
167
168 def test_timestamp(self):
169 # Assert Date.timestamp.
170 v = db.date(2010, 9, 21, format=db.DEFAULT_DATE_FORMAT)
171 self.assertEqual(v.timestamp, 1285020000)
172 print "pattern.db.Date.timestamp"
173
174 def test_time(self):
175 # Assert Date + time().

Callers

nothing calls this directly

Calls 1

dateMethod · 0.80

Tested by

no test coverage detected