def METHOD_NAME(self):
    class A:
        pass
    a = A()
    for value in ["abc", "0xabc", b"23", memoryview(b"23")]:
        hex_value = value if isinstance(value, str) else value.hex()
        a.value = value
        serializer = HexadecimalSerializerTest(a)
        self.assertEqual(serializer.data["value"], HexBytes(hex_value).hex())