def test_datetime_dict_keys_with_keys_enabled(self):
        datetime_dict = {datetime.datetime(2008, 12, 31): True}
        pickled = jsonpickle.encode(datetime_dict, keys=True)
        expect = datetime_dict
        actual = jsonpickle.decode(pickled, keys=True)
        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_with_keys_enabled