def test_identity_serializer_with_custom_content_type(): identity_serializer = IdentitySerializer(content_type="text/csv") assert identity_serializer.serialize(b"a,b\n1,2") == b"a,b\n1,2" assert identity_serializer.CONTENT_TYPE == "text/csv"
def test_identity_serializer(): identity_serializer = IdentitySerializer() assert identity_serializer.serialize(b"{}") == b"{}"