def testCssRegexParsing_getBothTypesOf_C_css():

    # Ensure both cXX and cX fromating is matched. Where is is 0-9
    class MockSoupObjectForCss:
        def __init__(self):
            text = None

    mockCss = MockSoupObjectForCss()
    mockCss.text = '.c11{color:#001000;}'
    cssStyles = _getCssStyles(mockCss)

    assert (cssStyles.get("c11") != None)

    mockCss = MockSoupObjectForCss()
    mockCss.text = '.c1{color:#001000;}'
    cssStyles = _getCssStyles(mockCss)
    assert (cssStyles.get("c1") != None)
def testCssRegexParsing():

    class MockSoupObjectForCss:
        def __init__(self):
            text = None

    mockCss = MockSoupObjectForCss()
    mockCss.text = '.c11{-webkit-text-decoration-skip:none;color:#001000;font-weight:700;text-decoration:underline;vertical-align:baseline;text-decoration-skip-ink:none;font-size:11pt;font-family:"Arial";font-style:normal}'
    
    cssStyles = _getCssStyles(mockCss)

    assert(cssStyles.get("c11") != None)
    assert(cssStyles.get("c11") == ['color:#001000', 'font-weight:700', 'text-decoration:underline'])