def can_serialize(self, data=None):
try:<EOL><INDENT>self.serialize(data)<EOL>return True<EOL><DEDENT>except ValueError:<EOL><INDENT>return False<EOL><DEDENT>
Tests this serializer to see if it can serialize.