'should convert to millis as-is'

def test_builtin_datetime_types(self):

    DT_EPOCH = dt.datetime.utcfromtimestamp(0)
    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': [((dt.datetime(*a.timetuple()[:6]) - DT_EPOCH).total_seconds() * 1000)], u'b': [(((b - DT_EPOCH).total_seconds() * 1000.0) + (b.microsecond / 1000.0))]}
    assert (deserialized == baseline)
    assert (deserialized == {u'a': [1461801600000.0], u'b': [1461810050000.0]})
