MCPcopy Create free account
hub / github.com/GothenburgBitFactory/taskwarrior / assertTimestamp

Method assertTimestamp

test/export.test.py:57–65  ·  view source on GitHub ↗

Asserts that timestamp is exported as string in the correct format.

(self, value)

Source from the content-addressed store, hash-verified

55 self.assertEqual(isinstance(value, type), True)
56
57 def assertTimestamp(self, value):
58 """
59 Asserts that timestamp is exported as string in the correct format.
60 """
61
62 # Timestamps should be exported as strings
63 self.assertType(value, STRING_TYPE)
64 # And they should follow the %Y%m%dT%H%M%SZ format
65 datetime.datetime.strptime(value, DATETIME_FORMAT)
66
67 def assertString(self, value, expected_value=None, regexp=False):
68 """

Callers 8

test_export_entryMethod · 0.95
test_export_startMethod · 0.95
test_export_endMethod · 0.95
test_export_dueMethod · 0.95
test_export_waitMethod · 0.95
test_export_modifiedMethod · 0.95
test_export_scheduledMethod · 0.95

Calls 1

assertTypeMethod · 0.95

Tested by

no test coverage detected