Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(1173)

Unified Diff: tests/delphi_date_time.py

Issue 345970043: [dfdatetime] Added CopyToDateTimeStringISO8601 method #111 (Closed)
Patch Set: Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tests/cocoa_time.py ('k') | tests/fake_time.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/delphi_date_time.py
diff --git a/tests/delphi_date_time.py b/tests/delphi_date_time.py
index c20ae2bded9665eb3f63e78c4899b7eaef5b8658..4d9a65e74f2bd6ac34dd7b8d1540d756a080584f 100644
--- a/tests/delphi_date_time.py
+++ b/tests/delphi_date_time.py
@@ -127,6 +127,14 @@ class DelphiDateTimeTest(unittest.TestCase):
date_time_string = delphi_date_time_object.CopyToDateTimeString()
self.assertIsNone(date_time_string)
+ def testCopyToDateTimeStringISO8601(self):
+ """Tests the CopyToDateTimeStringISO8601 function."""
+ delphi_date_time_object = delphi_date_time.DelphiDateTime(
+ timestamp=41443.8263953)
+
+ date_time_string = delphi_date_time_object.CopyToDateTimeStringISO8601()
+ self.assertEqual(date_time_string, '2013-06-18T19:50:00.553919Z')
+
def testGetDate(self):
"""Tests the GetDate function."""
delphi_date_time_object = delphi_date_time.DelphiDateTime(
« no previous file with comments | « tests/cocoa_time.py ('k') | tests/fake_time.py » ('j') | no next file with comments »

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b