def test_write_page_margins_header(self):

        self.worksheet.set_header(margin=0.5)
        self.worksheet._write_page_margins()

        exp = """<pageMargins left="0.7" right="0.7" top="0.75" bottom="0.75" header="0.5" footer="0.3"/>"""
        got = self.fh.getvalue()

        self.assertEqual(got, exp)
Removes duplicates AND preserves the original order of the elements.
dataset/ETHPy150Open jmcnamara/XlsxWriter/xlsxwriter/test/worksheet/test_write_page_margins.py/TestWritePageMargins.test_write_page_margins_header--crossover with--dataset/ETHPy150Open scipy/scipy/scipy/cluster/hierarchy.py/_remove_dups