[Git][NTPsec/ntpsec][master] Updated cooked date test

Ian Bruene gitlab at mg.gitlab.com
Mon Nov 27 13:21:31 UTC 2017


Ian Bruene pushed to branch master at NTPsec / ntpsec


Commits:
c9c9c867 by Ian Bruene at 2017-11-27T07:20:36-06:00
Updated cooked date test

- - - - -


1 changed file:

- tests/pylib/test_util.py


Changes:

=====================================
tests/pylib/test_util.py
=====================================
--- a/tests/pylib/test_util.py
+++ b/tests/pylib/test_util.py
@@ -702,51 +702,51 @@ class TestPylibUtilMethods(unittest.TestCase):
                              "reftime=00000000.00000000 "
                              "2036-02-07T06:28:16.000Z,\n"
                              "clock=10000000.00000000 "
-                             "2044-08-10T03:52:32.000Z,\n"
+                             "1908-07-04T21:24:16.000Z,\n"
                              "org=20000000.00000000 "
-                             "2053-02-11T01:16:48.000Z,\n"
+                             "1917-01-05T18:48:32.000Z,\n"
                              "rec=30000000.00000000 "
-                             "2061-08-14T22:41:04.000Z,\n"
+                             "1925-07-09T16:12:48.000Z,\n"
                              "xmt=40000000.00000000 "
-                             "2070-02-15T20:05:20.000Z\n")
+                             "1934-01-10T13:37:04.000Z\n")
             # Test prettydates, with units
             self.assertEqual(f(data, showunits=True),
                              "reftime=00000000.00000000 "
                              "2036-02-07T06:28:16.000Z,\n"
                              "clock=10000000.00000000 "
-                             "2044-08-10T03:52:32.000Z,\n"
+                             "1908-07-04T21:24:16.000Z,\n"
                              "org=20000000.00000000 "
-                             "2053-02-11T01:16:48.000Z,\n"
+                             "1917-01-05T18:48:32.000Z,\n"
                              "rec=30000000.00000000 "
-                             "2061-08-14T22:41:04.000Z,\n"
+                             "1925-07-09T16:12:48.000Z,\n"
                              "xmt=40000000.00000000 "
-                             "2070-02-15T20:05:20.000Z\n")
+                             "1934-01-10T13:37:04.000Z\n")
             # Test wide terminal
             termsize = (160, 24)
             self.assertEqual(f(data),
                              "reftime=00000000.00000000 "
                              "2036-02-07T06:28:16.000Z, "
                              "clock=10000000.00000000 "
-                             "2044-08-10T03:52:32.000Z, "
+                             "1908-07-04T21:24:16.000Z, "
                              "org=20000000.00000000 "
-                             "2053-02-11T01:16:48.000Z,\n"
+                             "1917-01-05T18:48:32.000Z,\n"
                              "rec=30000000.00000000 "
-                             "2061-08-14T22:41:04.000Z, "
+                             "1925-07-09T16:12:48.000Z, "
                              "xmt=40000000.00000000 "
-                             "2070-02-15T20:05:20.000Z\n")
+                             "1934-01-10T13:37:04.000Z\n")
             # Test narrow terminal
             termsize = (40, 24)
             self.assertEqual(f(data),
                              "\nreftime=00000000.00000000 "
                              "2036-02-07T06:28:16.000Z,\n"
                              "clock=10000000.00000000 "
-                             "2044-08-10T03:52:32.000Z,\n"
+                             "1908-07-04T21:24:16.000Z,\n"
                              "org=20000000.00000000 "
-                             "2053-02-11T01:16:48.000Z,\n"
+                             "1917-01-05T18:48:32.000Z,\n"
                              "rec=30000000.00000000 "
-                             "2061-08-14T22:41:04.000Z,\n"
+                             "1925-07-09T16:12:48.000Z,\n"
                              "xmt=40000000.00000000 "
-                             "2070-02-15T20:05:20.000Z\n")
+                             "1934-01-10T13:37:04.000Z\n")
             termsize = (80, 24)
             # Test ex-obscure cooking
             data = od((("srcadr", ("1.1.1.1", "1.1.1.1")),



View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/c9c9c867a412ecd9235a249fe38f878801dca521

---
View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/c9c9c867a412ecd9235a249fe38f878801dca521
You're receiving this email because of your account on gitlab.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ntpsec.org/pipermail/vc/attachments/20171127/19680774/attachment.html>


More information about the vc mailing list