'Test the _write_page_setup() method. With set_paper()'

def test_write_page_setup_paper(self):

    self.worksheet.set_paper(9)
    self.worksheet._write_page_setup()
    exp = '<pageSetup    paperSize="9"    orientation="portrait"/>'
    got = self.fh.getvalue()
    self.assertEqual(got, exp)
