def METHOD_NAME(self, obj: Any, file_path: str):
    """Compare the string representation
    Args:
        obj: Any
            Object to compare against the contents of the file
        file_path: str
            Location of the file containing the expected string value of `obj`
    """
    with open(file_path, "r", encoding="utf-8") as file_handle:
        file_contents = file_handle.read()
    self.assertEqual(str(obj), file_contents)