'Test the _write_defined_name() method'

def test_write_defined_name(self):

    self.workbook._write_defined_name(['_xlnm.Print_Titles', 0, 'Sheet1!$1:$1', 0])
    exp = '<definedName    name="_xlnm.Print_Titles"    localSheetId="0">Sheet1!$1:$1</definedName>'
    got = self.fh.getvalue()
    self.assertEqual(got, exp)
