Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def test_roundtrip_pickle(self):
ser = get_serializer(Format.PICKLE)
deser = get_deserializer(Format.PICKLE)
fp = BytesIO()
ser(date_sample, fp)
fp.seek(0)
obj = deser(fp)
self.assertEqual(obj, date_sample)