def StyleWeight(styleweight):
  if styleweight.endswith('Italic'):
    return ('italic', _KNOWN_WEIGHTS[styleweight[:-6]])

  return ('normal', _KNOWN_WEIGHTS[styleweight])
Test the _write_page_margins() method with default margins
dataset/ETHPy150Open googlefonts/fontbakery/tools/fontbakery-build-fontmetadata.py/StyleWeight--crossover with--dataset/ETHPy150Open jmcnamara/XlsxWriter/xlsxwriter/test/worksheet/test_write_page_margins.py/TestWritePageMargins.test_write_page_margins_deafult