def test_write_workbook(self):

        self.workbook._write_workbook()

        exp = """<workbook xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main" xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships">"""
        got = self.fh.getvalue()

        self.assertEqual(got, exp)
Test the _write_workbook() method
dataset/ETHPy150Open jmcnamara/XlsxWriter/xlsxwriter/test/workbook/test_write_workbook.py/TestWriteWorkbook.test_write_workbook