def test_non_jsonable_value(self): """ """ data = {'d': datetime(2015, 12, 31)} ret = encode_cookie(data) self.assertEqual('', '')
def test_jsonable_value(self): """ """ data = {'a': 1} ret = encode_cookie(data) self.assertEqual('eyJhIjogMX0', ret)