def test_metadata(self):
        doc = PythonReader.read([])
        doc["author"] = "The Author"
        doc["subject"] = "The Subject"
        doc["title"] = "The Title"

        latex = LatexWriter.write(doc).getvalue()
        assert "pdfauthor={The Author}" in latex, latex
        assert "pdfsubject={The Subject}" in latex, latex
        assert "pdftitle={The Title}" in latex, latex
assert that the document metadata are added into the latex file
dataset/ETHPy150Open brendonh/pyth/tests/test_writelatex.py/TestWriteLatex.test_metadata