def test_datetime_dict_keys_defaults(self):
        datetime_dict = {datetime.datetime(2008, 12, 31): True}
        pickled = jsonpickle.encode(datetime_dict)
        expect = {'datetime.datetime(2008, 12, 31, 0, 0)': True}
        actual = jsonpickle.decode(pickled)
        self.assertEqual(expect, actual)
Test that we handle datetime objects as keys.
dataset/ETHPy150Open jsonpickle/jsonpickle/tests/datetime_test.py/DateTimeAdvancedTestCase.test_datetime_dict_keys_defaults