'Test parsing of font-family values'

def test_parse_font_family(self):

    for (raw, q) in {u'"1as"': [u'1as'], u'A    B    C,    serif': [u'A    B    C', u'serif'], u'Red\\/Black': [u'Red/Black'], u'A        B': [u'A    B'], u'Ahem\\!': [u'Ahem!'], u'"Ahem!"': [u'Ahem!'], u'\u20ac42': [u'\u20ac42'], u'Hawaii\\    5-0': [u'Hawaii    5-0'], u'"X    \\"Y"': [u'X    "Y'], u'A    B,    C    D,    "E",    serif': [u'A    B', u'C    D', u'E', u'serif'], u'': [], u'"",    a': [u'a']}.iteritems():
        self.ae(q, parse_font_family(raw))
    for single in (u'serif', u'sans-serif', u'A    B    C'):
        self.ae([single], parse_font_family(single))
