diff --git a/tests/dicts/io/input/valid-content.plist b/tests/dicts/io/input/valid-content.plist index f8a815d..1eb4c09 100644 --- a/tests/dicts/io/input/valid-content.plist +++ b/tests/dicts/io/input/valid-content.plist @@ -2,7 +2,7 @@ aDate - 1985-04-03T21:55:00Z + 1985-04-03T23:55:00Z aDict aFalseValue diff --git a/tests/dicts/io/test_io_dict_plist.py b/tests/dicts/io/test_io_dict_plist.py index 9c42a9d..64aa00b 100644 --- a/tests/dicts/io/test_io_dict_plist.py +++ b/tests/dicts/io/test_io_dict_plist.py @@ -20,14 +20,14 @@ class io_dict_plist_test_case(io_dict_test_case): aFloat = 0.1, anInt = 728, aDict = dict( - anotherString = u'', + anotherString = '', aThirdString = u'M\xe4ssig, Ma\xdf', aTrueValue = True, aFalseValue = False, ), someData = plistlib.Data(''), someMoreData = plistlib.Data('' * 10), - aDate = dt.datetime.fromtimestamp(481406100), + aDate = dt.datetime(1985, 4, 3, 23, 55)# dt.datetime.fromtimestamp(481413300), ) else: self._dict = dict( @@ -43,7 +43,7 @@ class io_dict_plist_test_case(io_dict_test_case): ), someData = bytes('', encoding='utf-8'), someMoreData = bytes('' * 10, encoding='utf-8'), - aDate = dt.datetime.fromtimestamp(481406100), + aDate = dt.datetime(1985, 4, 3, 23, 55)# dt.datetime.fromtimestamp(481413300), ) # self._dict = { # 'aString': 'Doodah', @@ -65,7 +65,7 @@ class io_dict_plist_test_case(io_dict_test_case): aDate - 1985-04-03T21:55:00Z + 1985-04-03T23:55:00Z aDict aFalseValue @@ -116,6 +116,7 @@ class io_dict_plist_test_case(io_dict_test_case): # static method d = IODict.from_plist(j) self.assertTrue(isinstance(d, dict)) + self.assertEqual(d.get('aDate'), self._dict.get('aDate')) self.assertEqual(d, self._dict) # constructor d = IODict(j, format='plist')