def test_font_variant_caps_all_petite(assert_pixels):
    assert_pixels('''
        ________
        BB_BB___
        B_BB_B__
        BB_BB___
        B__B____
        ________
    ''', '''
      <style>
        @page {size: 8px 6px}
        p {
          color: blue;
          font-variant-caps: all-petite-caps;
          font-family: %s;
          font-size: 6px;
          line-height: 1;
        }
      </style>
      <p>Pp</p>
    ''' % SANS_FONTS)
,
tests/draw/test_text.py