def test_element_serialization(self): self.assertEqual( BulkDataElement(info=(123,), data=b'\xFF').to_json(), [(123,), [-1]])