def test_builtin_datetime_types(self):

        a = dt.date(2016, 4, 28)
        b = dt.datetime(2016, 4, 28, 2, 20, 50)
        serialized = self.serialize({'a' : [a],
                                     'b' : [b]})
        deserialized = self.deserialize(serialized)

        baseline = {u'a': [time.mktime(a.timetuple())*1000],
                    u'b': [time.mktime(b.timetuple())*1000],
        }
        assert deserialized == baseline
Take a snapshot of the current video window.
dataset/ETHPy150Open bokeh/bokeh/bokeh/core/tests/test_json_encoder.py/TestSerializeJson.test_builtin_datetime_types--crossover with--dataset/ETHPy150Open disqus/playa/playa/lib/vlc.py/libvlc_video_take_snapshot