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

Method test_time

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

Source from the content-addressed store, hash-verified

172 print "pattern.db.Date.timestamp"
173
174 def test_time(self):
175 # Assert Date + time().
176 v = db.date("2010-09-21 9:27:00")
177 v = v - db.time(days=1, hours=1, minutes=1, seconds=1)
178 self.assertEqual(str(v), "2010-09-20 08:25:59")
179 print "pattern.db.time()"
180
181#---------------------------------------------------------------------------------------------------
182

Callers

nothing calls this directly

Calls 2

strFunction · 0.85
dateMethod · 0.80

Tested by

no test coverage detected